home / experts / javascript / column2 |
|
JavaScript stores all dates as the number of milliseconds since January 1, 1970 00:00:00. Therefore, trying to handle preceding dates results in an error, or even crashes the browser. JavaScript does not have a date data type. However, the
There are several other possible arguments, but these are the most important ones. The Macintosh version of Netscape Navigator 2.0x is one day in the future. In order to fix this bug in your script, use the following function:
Since some of the methods in this function are beyond the scope of our column, we'll just show you how to use it. Once you've created an instance of the
|
Created: September 11, 1997
Revised: April 7, 1998
URL: http://www.webreference.com/js/column2/instance.html