Hi,
Im trying to use strtotime() to convert a string into a timestamp for further use.
when the regular date() function is used, if its an invalid date, it figures out what the right date should be
eg. if you enter the date as feb 30 the date command works that out as being march 2nd
however im having trouble with this with strtotime.
if i enter this: echo date("Ymd",strtotime("31 November $year")) . "<BR>";
it prints out: 20091201 which is good
however, if i use: echo date("Ymd",strtotime("32 November $year")) . "<BR>";
it displays: 19691231
while I understand that both of these dates are invalid dates, shouldnt PHP be either, displaying 19691231 for both dates (because they are invalid dates), or display the correct date for both of them.
How come it figures out the correct date for one, but not the other? just seems a bit weird.