RPrinceton
Programmer
Hi Everyone,
The code below yields a year of 106. I think the 1 is supposed to mean 20 (a Y2K thing). I can certainly test for
the one, but is there another Javascript function to produce
a 4 digit year?
Please advise.
Regards,
RPrinceton
Javascript:
<!--BegHide
hdg = "Excellence in Software"
dtObj = new Date()
ccyy = dtObj.getYear()
hdg = "<FONT COLOR=#FFCF63 SIZE=6><CENTER>" + hdg + " " + ccyy + "</CENTER></FONT>"
document.write(hdg)
document.write("<BR>")
//EndHide-->
The code below yields a year of 106. I think the 1 is supposed to mean 20 (a Y2K thing). I can certainly test for
the one, but is there another Javascript function to produce
a 4 digit year?
Please advise.
Regards,
RPrinceton
Javascript:
<!--BegHide
hdg = "Excellence in Software"
dtObj = new Date()
ccyy = dtObj.getYear()
hdg = "<FONT COLOR=#FFCF63 SIZE=6><CENTER>" + hdg + " " + ccyy + "</CENTER></FONT>"
document.write(hdg)
document.write("<BR>")
//EndHide-->