By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,677 Members | 1,094 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,677 IT Pros & Developers. It's quick & easy.

FAQ Topic - How do I format the Last-Modified date with javascript?

P: n/a
-----------------------------------------------------------------------
FAQ Topic - How do I format the Last-Modified date with
javascript?
-----------------------------------------------------------------------

Apparently, ` new Date() ` reads it correctly, though problems
can occur if the browser returns only two digits for the year.
In particular, time zone, 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.

May 7 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
FAQ server wrote on 08 mei 2007 in comp.lang.javascript:
-----------------------------------------------------------------------
FAQ Topic - How do I format the Last-Modified date with
javascript?
-----------------------------------------------------------------------

Apparently, ` new Date() ` reads it correctly, though problems
What?

Does new Date() read the Last-Modified date????

This is not what John wrote.
He rightly compared the LMD string
with the string result of new Date(), methinks!
can occur if the browser returns only two digits for the year.
In particular, time zone, 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


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.