Package hw
Class Date

Public Method getWeekDay

int getWeekDay()

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns Range Description
int 0...6 weekday value of Date object

Get weekday value from a Date object. The Date object is returned from IO.getDate() and will contain the date at the time of the method call, derived from the real-time clock.

Note

Example

Date saveCurrentDate = IO.getDate();

Console.println("stored weekday: " + saveCurrentDate.getWeekDay());

See also:

IO.getDate()
IO.setDate(int, int, int, int)