Please note that strtotime () can be difficult with dates in a format other than the United States at different times (in particular, dates of the DD / MM / YYYY formats, although this is good with YYYY-MM-DD); if you are using PHP 5.3, you will almost certainly get better results using something like the DateTime class , which allows you to specify which format the date is in.
source share