javascript date getYear() returns different result between IE and Firefox, how to approach this?
Apparently javascript date object's method getYear() returns different result between IE8 and Firefox3.6 (I have those 2 on my machine, not sure other browser or version) Date d = new Date(); alert(d.getYear()); FF3.6 ==> 111 (year since 1900? i guess) IE8 ===> 2011 I have been only testing on Firefox and now my Javascript code that adjust returned value of getYear() is now giving me 3911 because of my coding. var modified = d.getYear() + 1900 On Firefox it return 2011. But if I apply this approach on IE8, it return 3911. I could add logic to distinguish IE and Firefox but I don't want to add