Problem with date() and strtotime

Erdy||

New Member
Here is what I have:\[code\]$str = '12-25-2009';echo date('Y-m-d', strtotime($str));\[/code\]This produces 1969-12-31 instead of 2009-12-25. If I set the $str var to 01-01-2009, I will get 2009-01-01 which is correct. Why is this happening?
 
Back
Top