Quote from: MadeMyDay at Oct 17, 2007, 08:53 AM
I think you try it with this format : 07/13/1967. This doesn´t work because of an error in the function.
Just comment out this line:
$dateArray = explode('-', $date);
because it overrides the if clauses above.
According to the php documentation, mktime returns "a timestamp is a long integer containing the number of seconds between the Unix Epoch (January 1 1970 00:00:00 GMT) and the time specified. "...
Ok but what if I’m a little older than that?! let’s say born in 1965 (wow... 42!)?
Well on Windows, it returns to me the following error : "mktime(): Windows does not support negative values for this function"
integer/timestamp does not seem correct to store a DOB (cf. SaveUserProfile)...? or did I miss something?
--- EDIT ----
Ok Solved : the same php doc says later on : "However, before PHP 5.1.0 this range was limited from 1970 to 2038 on some systems (e.g. Windows). ".
So I need to be on this version...