Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Date Object setTime Method

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

Syntax: JScript Date Object setTime Method

objDate.setTime(milliseconds)

Arguments: JScript Date Object setTime Method

objDate

The name of a Date object. Required.

milliseconds

An integer value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.

Remarks: JScript Date Object setTime Method

If milliseconds is negative, it indicates a date before 1970. The range of available dates is approximately 285,616 years from either side of 1970.

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

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.