mySQL Timestamp convert to RSS PubDate
PHP Code
+ 0 likes
Please Register to submit score.
| Average Score | 5.0 (of 3 scores) |
| Date Added | Aug 29, 2004 |
| Last Updated | Jan 17, 2006 |
| Tags | convert mktime mysql pubdate rss timestamp |
Introduction
PHP Snippet:
mySQL Timestamp convert to RSS PubDate
Posted on Jan 19, 2005 10:40 am
Posted on Jan 19, 2005 10:40 am
Even easier, you can extract a unix timestamp from the database. In the column list of the mysql query, put UNIX_TIMESTAMP(column name)
PHP Snippet:
mySQL Timestamp convert to RSS PubDate
Posted on Aug 23, 2009 7:01 pm
Posted on Aug 23, 2009 7:01 pm
Or easier yet:
<?php $pubdate = date('D, d M Y H:i:s O', strtotime($timestamp)); ?>
<?php $pubdate = date('D, d M Y H:i:s O', strtotime($timestamp)); ?>






