getDay()
Top  Previous  Next


Syntax
DateObj.getDay()

Arguments
none

Returns
an integer

Description
Method; returns an integer representing the day of the week of the Date Object according to Local Time. The result is an integer from 0 to 6 (0 being Sunday, 1 being Monday, 2 being Tuesday, etc.)

Sample

onFrame (1) {
theDate = new Date();
trace(theDate.getDay());
}

// If it is Sunday on your system clock - "0" will be returned in the debug window.