I have date-of-birth's stored in my customer database in the format
1953-05-15
Uno, the "date" type of field.
Now when I pull it out and split it into 3 variables for 3 different text boxes in my "update your profile" pages like this:
$dob_year = date("Y", strtotime($rm['DOB']));
$dob_month = date("m", strtotime($rm['DOB']));
$dob_day = date("d", strtotime($rm['DOB']));
I get the following date:
[01] [01] [1970]
and when I do the following:
echo date("d/m/Y", strtotime($rm['DOB']));
I get:
01/01/1970
Huhh, am I missing something?
Someone help!
😃 Please