next up previous contents
Next: setFullYear Up: Methods Previous: getYear   Contents


setDate

Description

Sets the day of the month for the specified Date object, according to local time, and returns the new time in milliseconds. Local time is determined by the operating system on which the Ffish Script is running.


Syntax

date1.setDate(date)


Parameters

date
An integer from 1 to 31.


Returns

An integer.


Example

d = new Date(1997, 6, 15);
trace(d.setDate(32));
//output: 870364800000
trace(d.toLocaleString());
//output: Fri Aug 01 00:00:00 GMT+800 (中国标准时间) 1997




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.