JRS: In article <UL*****************@news.optus.net.au>, dated Tue, 27
Sep 2005 23:40:36, seen in news:comp.lang.javascript, RobG
<rg***@iinet.net.au> posted :
Dung Ping wrote:
To answer his Subject line - the fault lies with the stupidity of
primeval programmers, probably in California.
The value of Full Year will have been available from operating systems,
so getYear should have been coded as getFullYear in the first place, in
order not to lose information which some will need; then to get a two-
digit year is trivial for the script coder, using %100.
getFullYear is not supported by very old browsers, so if you want to
accommodate them, use one of the routines suggested here:
<URL:http://www.merlyn.demon.co.uk/js-date0.htm#gY>
That may be the right place to start, but the routines are in #gFY.
That does not include, though it does link to, Year = 2000 + Year%100
which should do for our lifetimes.
--
© 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.