PHP: Date format for sitemap.xml
In case you want to create a sitemap generator

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());
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