Closed
Bug 194789
Opened 22 years ago
Closed 20 years ago
getYear() function returned 103 instead of 2003
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
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.
Comment 1•22 years ago
|
||
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Comment 2•22 years ago
|
||
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
Updated•20 years ago
|
Status: VERIFIED → UNCONFIRMED
Resolution: DUPLICATE → ---
Comment 3•20 years ago
|
||
*** This bug has been marked as a duplicate of 22964 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago → 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•