How do I format the lastModified date with javascript?
Apparently, new Date() reads document.lastModified correctly, though problems can occur if the browser returns only two digits for the year. In particular, time offset, field order and separators may vary. It is also reliant on the server’s clock having been correctly set at the time of upload. See the URL below. • http://www.merlyn.demon.co.uk/js-date2.