View Full Version : dates?
Cheeko
07-04-2004, 07:55 PM
okie dokie, im working on a mod for vb3. one small problem for me is how dates are stored in the database..
how do i convert these to a readable form? how do i convert dates into the figures in the db? how do i compare them?
any help appereciated
AN-net
07-04-2004, 09:51 PM
use
vbdate($vboptions[dateformat], $variable, 1);
and
vbdate($vboptions[timeformat], $variable, 1);
to transfer numbers to dates
to compare dates use the number form
i would like to know how to turn dates into numbers:)
Cheeko
07-05-2004, 08:02 PM
thanks for that, helps me on my way
the next step indeed is to turn the date into the number..
i remember coding irc scripts a while ago that converted time into a number format, UHF? i dunno, something along those lines. surely theres a php function? perhaps that is the one used by vb?
/me treks off to the php docs to hunt and gather
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.