View Full Version : convert JOIN DATE in the vB mysql database to a real date
Quarterbore
04-11-2006, 09:27 PM
Is there an easy way to convert JOIN DATE in the vB mysql database to a real date?
Can anyone explain what that code really means? I have a site that is at it's 1st year and I wanted to share the stats for the year with my members but the code has me puzzled!
tnguy3n
04-11-2006, 09:36 PM
vB dateline = time(), time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).
If you want to convert it real date (i.e, mm-dd-yyyy), try
UPDATE user SET joindate = date('m-d-Y', joindate)
Dean C
04-11-2006, 10:23 PM
Whatever you do, don't change it. Learn how to use time properly (www.php.net/time)
Paul M
04-11-2006, 10:26 PM
vB dateline = time(), time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).
If you want to convert it real date (i.e, mm-dd-yyyy), try
UPDATE user SET joindate = date('m-d-Y', joindate)That would be a very bad thing to do, and probably fail anyway since joindate is an integer field.
sabret00the
04-14-2006, 03:58 PM
Whatever you do, don't change it. Learn how to use time properly (www.php.net/time)
lol, but i agree, it's insane to want to dump the timestamps
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.