PHP RSS Reader For DW MX Support Product Page

This topic is locked

How to Format Date? - [Solved]

Asked 06 Dec 2011 20:22:25
1
has this question
06 Dec 2011 20:22:25 Gary Block posted:
How can I format the date? Right now it shows too much info: Tue, 06 Dec 2011 17:56:53 +0000. Ideally, I would like this format: Tuesday, December 6, 2011.

Otherwise, this is a great extension!

Thanks, Gary

Replies

Replied 06 Dec 2011 20:37:19
06 Dec 2011 20:37:19 Gary Block replied:
Got it! This code will convert the date to a format like: December 6, 2011.


<?php
$mydate = strtotime($MYRSS->pubDates[$itemNum]); 
echo date("F j, Y", $mydate); 
?>



Edited by - Gary B on 06 Dec 2011  20:38:11

Reply to this topic