PDA

View Full Version : How does vbulletin store dates?


JohnL
Sun 8th Apr '01, 12:31am
I can see that the datatype is an integer but how can I convert the integer to a date in a SQL query?

Mike Sullivan
Sun 8th Apr '01, 1:13am
It's a unix timestamp -- MySQL supports switching to and from it. And it's PHP's native format for date().

JohnL
Sun 8th Apr '01, 2:19pm
Thanks, Ed. So is there a mysql function to display the timestamp as a formated date string?