next up previous contents
Next: getFullYear Up: Methods Previous: getDate   Contents


getDay

Description

Gets the day of the week (0 for Sunday, 1 for Monday, and so on) of the specified Date object according to local time. Local time is determined by the operating system on which the Ffish Script is running.


Syntax

date1.getDay()


Parameters

None


Returns

An integer.


Example

d = new Date(2002, 6, 15);
trace(d.getDay());
//output: 1




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