Page 1 of 1

does anybody has a parser for this DATE format?

Posted: Thu Aug 10, 2006 9:43 pm
by pedrotuga
I want to fetch news from a few authors...
in order not to confuse them or ask them to post them on one more place, i will ftetch them from theirs blog's feeds.

most use wordpress, some even blogspot...

the "published" date comes in this format:

Wed, 09 Aug 2006 06:58:21 +0000

does anybody has a parser for unixtimestamp or timestamp?... magpie and lastss dont have

thx

Posted: Thu Aug 10, 2006 10:08 pm
by RobertGonzalez

Code: Select all

$date = date('m/d/Y', strtotime($fetched_date_from_wordpress));

Posted: Fri Aug 11, 2006 5:38 pm
by pedrotuga
lets try this out.

Posted: Fri Aug 11, 2006 6:01 pm
by pedrotuga
Everah wrote:

Code: Select all

$date = date('m/d/Y', strtotime($fetched_date_from_wordpress));
works like a charm... amazing.

Posted: Fri Aug 11, 2006 7:12 pm
by PrObLeM
strtotime -- Parse about any English textual datetime description into a Unix timestamp