MyBB Community Forums

Full Version: What is the variable for timestamp?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using:
dateline varchar (120) NOT NULL

And I insert "TIME_NOW" to it.
When I later retrieve find it from the db, I am getting a UNIX timestamp with that.

What could I do to store readable date and time in a variable, say $datetime ?
MyBB provides a my_date() function (defined in inc/functions.php) which converts a UNIX timestamp to a more human readable format.

Hope that helps.
Thanks! Works perfectly Smile

Cheers