PHP: Date format for sitemap.xml
In case you want to create a sitemap generator
Sitemap.xml files require special date format. Example valid date is:2010-10-06T11:56:00+01:00
To print date in this format you can use:echo date('Y-m-dTH:i:sP', time());
or simply:echo date('c',time());
Comments