Jump to content

storing current date on database


fael097

Recommended Posts

You should store it in a datetime field type. Have a read of the MySQL manual page http://dev.mysql.com/doc/refman/5.0/en/datetime.html for a good explanation. Then you can easily use MySQL's DATE_FORMAT() function to retrieve the date and time in whatever format you'd like.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.