Closed Bug 306702 Opened 19 years ago Closed 19 years ago

The year in getYear object using js does'nt shows the currect year. 1900 must be added.

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 22964

People

(Reporter: i65757908, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; he-IL; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; he-IL; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 In my little html: <html> <SCRIPT LANGUAGE="JavaScript"> var DateObj = new Date();document.write(DateObj.getYear()); </SCRIPT> In mozilla the year is 105 in IE the year is 2005 Reproducible: Always
use getFullYear() instead *** This bug has been marked as a duplicate of 22964 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.