Closed Bug 194789 Opened 22 years ago Closed 20 years ago

getYear() function returned 103 instead of 2003

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 22964

People

(Reporter: keith, Assigned: rogerl)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130 <script language="JavaScript"> var MyDate = new Date(); var Month = new Array('January', 'Feburary', 'March', 'April', 'May', 'June', 'July', 'Augest', 'September', 'October', 'November', 'December'); var DayofWeek = new Array('Sunday', 'Monday', 'Tuesday', 'Wedensday', 'Thursday', 'Friday', 'Saturday'); document.write(DayofWeek[MyDate.getDay()] + ', ' + Month[MyDate.getMonth()] + ' ' + MyDate.getDate() + ', ' + MyDate.getYear()); </script> returns the year as "103" Reproducible: Always Steps to Reproduce: 1. 2. 3.
read bug 45764 *** This bug has been marked as a duplicate of 45764 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Verified Duplicate. getYear() has been deprecated; use getFullYear() instead. Bug 45764 explains why Microsoft and Netscape behave differently on the former -
Status: RESOLVED → VERIFIED
Summary: getDate function returned 103 instead of 2003 → getYear() function returned 103 instead of 2003
Status: VERIFIED → UNCONFIRMED
Resolution: DUPLICATE → ---
*** This bug has been marked as a duplicate of 22964 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.