echo "devil";

RSS date format to a different format

27.05.2010 10:20 | PHP

The RSS date format looks like this: Sat, 01 May 2010 18:30:00 -0500. If you want something else, you will need to convert this date. Here's a small example of how you in PHP can convert a date from the RSS date format to a different format:

echo date( 'd.m.Y H:i', strtotime($RSS_DATE) );

This would return a format like 01.06.2010 18:30.


Tags: date, date format, feed, rss, php function

« Back «

Share |




RSS feed