Feedback on: irt.org FAQ Knowledge Base Q147
Worth:
Worth reading
Length:
Too long
Comments:
to subtract n hours from a date, subtract (n/24) from the date. this is same as subtracting n hours from the date.
Worth:
Length:
Technical:
Comments:
Use the UTC get methods (such as getUTCFullYears, getUTCMonths, etc.) instead of what's used in this example, or your timezone will shift. You also don't need the y2k method anymore with FullYears. (according to W3C this is IE/Netscape 4+)