Closed Bug 428064 Opened 16 years ago Closed 16 years ago

use of JavaScript date.getYear() returns 108 (instead of 2008)

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 22964

People

(Reporter: perrault, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13

with:
 var d = new Date();

 d.getYear() returns 108 (instead of 2008)

Reproducible: Always

Steps to Reproduce:
1.declare the var : var d = newDate()
2.call d.getYear()
3. or paste the following lines:
  <SCRIPT  LANGUAGE="JavaScript">
<!-- 
var d = new Date();
document.write(d.getYear());
//--></SCRIPT>
Actual Results:  
d.getYear gives 108


Expected Results:  
the year is 2008  :)
Keywords: dataloss
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Keywords: dataloss
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.