I have a date stored in a table as 1964-03-31. I use MySQL's date_format functcion to return the date as 03/31/1964.
Instead of returning
03
31
1964
it returns
12
31
1969
What am I doing wrong? TIA.
MrsBean
Code:
$bdayMonth = strftime("%m", $Birthdate);
echo "<p>$bdayMonth</p>";
$bdayDate = strftime("%d", $Birthdate);
echo "<p>$bdayDate</p>";
$bdayYear = strftime("%Y", $Birthdate);
echo "<p>$bdayYear</p>";
Instead of returning
03
31
1964
it returns
12
31
1969
What am I doing wrong? TIA.
MrsBean