65.9K
CodeProject is changing. Read more.
Home

Website Last Updated Date Using JavaScript

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Dec 6, 2011

CPOL
viewsIcon

6441

This technique is for use with a Web site, where your visitors may come from any part of the world - expecting different date formats.To handle this requirement, the date can be displayed using:document.lastModified.toLocaleDateString()

This technique is for use with a Web site, where your visitors may come from any part of the world - expecting different date formats. To handle this requirement, the date can be displayed using:
document.lastModified.toLocaleDateString()