Converts the passed month, day and year arguments into a a JavaScript date object.
JSV_toDate(inMonth, inDay, inYear)
n/a
The toDate function returns a JavaScript date object created from inMonth, inDay, and inYear.
The toDate function uses the following arguments.
Argument | Description |
inMonth |
The month to be set. Valid months include:
|
inDay | The date (i.e., day of the month) to be set (e.g., 17). |
inYear | The year to be set. The toDate function supports the input of a four-digit year. |
n/a
n/a
The following lines of code
document.write( "1-1-1999 is " + JSV_toDate(0, 1, 1999) );
document.write( "1-1-2000 is " + JSV_toDate(0, 1, 2000) );
document.write( "1-1-2002 is " + JSV_toDate(0, 1, 2002) );
produce
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.