Jump to content

MySql - Storing a date


Cyberspace

Recommended Posts

well, seeing as you hate timestamps theres not much you can do that allows easy manipulation, andyb's suggestion is very good though. yyyy-mm-dd is the international standard for dates and it is good for verification and manipulation. using some good regular expressions and the php function: strtotime() along with date("Y-m-d") will allow you to achieve this

Link to comment
https://forums.phpfreaks.com/topic/99801-mysql-storing-a-date/#findComment-510494
Share on other sites

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.