Microsoft® JScript™
setTime Method
Language Reference |
Version 1 |

See Also                  Applies To


Description

Sets the date and time value directly in the Date object.

Syntax
dateObj.setTime(milliseconds)

The milliseconds argument is an integer value representing the number of elapsed seconds since midnight, January 1, 1970 GMT.

Remarks

Setting the date and time with the setTime method is independent of the time zone.


© 1997 Microsoft Corporation. All rights reserved.