Hi Can anyone help me with the following I am scraping some content (legally) and I need to convert the date to a timestamp. It is presented in this format September 22nd, 2011 11:05 AM Can anyone help.
use strtotime $time = strtotime('September 22nd, 2011 11:05 AM'); //convert echo date('r',$time); // check
From the PHP manual: "strtotime — Parse about any English textual datetime description into a Unix timestamp" They're pretty broad about the meaning of "any" - even "next Thursday" will produce a valid time value.