JRS: In article <VJmZd.64026$SF.11918@lakeread08>, dated Mon, 14 Mar
2005 15:45:51, seen in news:comp.lang.javascript, What-a-Tool <Die!Frigg
in****************@IHateSpam.Com> posted :
Why is it that the following code displays "2005" in IE, but "105" in every
other browser I've tried?
Because, AIUI, you have not yet tried enough browsers. I've heard that
5 can be returned by getYear().
Read the newsgroup FAQ; see below.
Use instead getFullYear, unless you need to support very old systems; in
that case, use a function getFY that calculates the proper year number
from getYear and getTime .
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.