I have the following
$mydate = "26 January, 2012, 5:05 AM";
I want to format this date properly so I can insert it into a post_date. Is there a simple way to do it?
$post_ information = array ( //other data is also inserted 'post_date' => $mydate; );
strtotimewould be your best bet but it doesn't work. Where did you get that date string?