well it returns blank for me anyway, note that for mktime "Date with year, month and day equal to zero is considered illegal"
Apparently it returns -1 in versions of PHP previous to 5.1 so perhaps you are using the most recent version of PHP I'm trying to do a calculation to find out how many days are between 2 different dates and it works up until there are no more days left because my mktime function is of course trying to work out mktime(0,0,0,0,0,0); Thanks for your pointers.
yes, i'm using the latest version of php always like to use the latest tools... for days difference, try this $days = (strtotime($date1) - strtotime(date($date2))) / (60 * 60 * 24); print $days; Code (markup):