Netscape 4.6 Y2K Problem?
Stefano Bargioni
bargioni at usc.urbe.it
Thu Jan 13 03:22:00 EST 2000
> Netscape says its browsers are Y2K compliant, but the JavaScript I am using
> <Stamp.getDate ( )> is showing 100 or 1000 rather than 2000. Has anyone else
> had this problem and solved it? Thanks.
Use getFullYear instead of getYear:
today = new Date();
currentYear = today.getFullYear(); // returns 2000
Bye. Stefano
--
Dott. Stefano Bargioni
Pontificia Universita' della Santa Croce - Roma
--- "Si apud bibliothecam hortulum habes, nihil deerit" (Cicerone) ---
<mailto:bargioni at usc.urbe.it> <http://www.usc.urbe.it>
More information about the Web4lib
mailing list