I used this code
$new_date = date('Y-m-d H:i:s', timetostr($orig_date));
to convert this input Wed Jun 2 2010
to a datetime
output 2010-06-02 00:00:00
When I read it from the database, how do I convert it back to the original format of Wed Jun 2 2010
?