PHP - Replacing output format of date... - 09/04/05 09:42 PM
Ok, I'm trying to code up an RSS2.0 output of the news that's displayed on the main page... I've got about 99% of everything done however I've run into a snag...
The UBB stores dates (presantly) as (08-31-2005 05:54 AM):
However RSS2.0 specs declare that the date MUST be (Sun, 04 Sep 2005 07:42:38 PDT):
Now, to tinker with the code to change how the date is displayed will effectively screw things up all over the site, so my PHP file will have to change the date format based on the date in the string "$postdate"...
Any ideas?
The UBB stores dates (presantly) as (08-31-2005 05:54 AM):
Code
Date("m-d-Y h:i A");
Code
Date("D, d M Y H:i:s T");
Any ideas?