Date format for PHP sorting with Mysql (Datepicker) -


i'm using datepicker allow users add events calendar db table want able let other users search database , pick dates between 2 values, wondering best date format @ moment it's not ordering them correctly (at moment i'm using d-m-y). have put in timestamp , decode php format in website or there easier way?

mysql's default format dates yyyy-mm-dd (iso 8601). if work dates in format can use mysql's default sorting order them you.


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

python - Received unregistered task using Celery with Django -

php - Retrieving data submitted with Yii's CActiveForm -