BlackMale is right. The problem is that this function will break as soon you translate the language file to a different language. The suggested fix will do the trick after any English date format including strtotime("$day-$month-$year"); (European) or strtotime("$month/$day/$year"); (US) will be converted into a Unix timestamp.