strotime() returning false on proper date formatted string?

Posted by eriksays on Stack Overflow See other posts from Stack Overflow or by eriksays
Published on 2010-06-17T20:23:49Z Indexed on 2010/06/17 21:23 UTC
Read the original article Hit count: 174

Filed under:
|

Trying to format a date string using a technique I've used countless times, suddenly returning false (PHP5). Anyone run into this?

//$new_date = June 14,2010
echo $new_date;
$new_date = date("F j, Y", strtotime($new_date));
//returns the infamous December 31, 1969 because strototime() is returning false?

© Stack Overflow or respective owner

Related posts about php

Related posts about php5