F
FAQ server
-----------------------------------------------------------------------
FAQ Topic - 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.htm#lM
--
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers. The sendings of these
daily posts are proficiently hosted by http://www.pair.com.
FAQ Topic - 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.htm#lM
--
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers. The sendings of these
daily posts are proficiently hosted by http://www.pair.com.