devxlogo

Year 2000K Compliant

Year 2000K Compliant

Question:
How do I make my date and time JavaScript Y2K compliant? Thank you.

Answer:
To the best of my knowledge, JavaScript, the language, is already Year 2000 compliant. Internally it represents dates as milliseconds from January 1, 1970.

Browsers, however, may have minor Y2K problems. For example, I know that various older versions of Internet Explorer do not handle cookies with expiration dates after the year 2000 correctly.

devx-admin

Share the Post: