Forum Moderators: coopster

Message Too Old, No Replies

pubDate in RSS

converting pubDate to GMT unix timestamp

         

ElectroSoft

8:45 am on Jul 16, 2006 (gmt 0)

10+ Year Member



Hello there,

I have a script that filters many news RSS and store in the database the needed articles.

But the issue is that those feeds are from different countries, and I want to convert the dates in <pubDate> entity to GMT then Unix Timestamp in order to sort them in the database.

Any idea?

Little_G

10:59 am on Jul 16, 2006 (gmt 0)

10+ Year Member



Hi,

You can use the strtotime [php.net] function to return a timestamp and date to reformat it if you want.

Andrew