JRS: In article <Ht1ib.578$mM1.263 (AT) newsfep4-winn (DOT) server.ntli.net>, seen
in news:comp.lang.javascript, Brian H¹© <no.spam (AT) this (DOT) addy.ta> posted at
Sun, 12 Oct 2003 01:44:24 :-
Quote:
The following script works ok for IE, but when someone views it using Netscape
the year shows as 103, is there anything that can be changed in the script to
render it Netscape friendlier please? |
Method getFullYear is available in most browsers; but all you need to do
is to change 100 to 1000 or 1e3.
When posting code, do not allow your news software to line-wrap it; that
is inconsiderate towards possible readers.
Telling your readers the current local date is rather pointless and a
waste of resources; they can discover it in many other ways.
Read the FAQ.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.