Why doesn't strtotime() correctly parse this single quoted string containing PHP variables: '{$month}/{$day}/{$year}'?
I am using the following code to convert a date in the format mm/dd/yy to show November, 19, 2008
echo date('F d, Y', strtotime('{$month}/{$day}/{$year}'));
In my database I have the values for $month, $day and $year stored as an INT.
When I add the variables into the date function, the output is wrong. I am getting an unexpected date. The date I have in the system is 2/1/1977 but the output gives December 31, 1969.
any ideas?