Improved lastmod date formatting