AnyLogic
Expand
Font size

getDayOfWeek

getDayOfWeek()

Description

Returns an integer constant indicating the day of the week for the current model date. Possible return values are:

SUNDAY
MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
SATURDAY

Days of the week are numbered from SUNDAY (1) to SATURDAY (7).

Result

Type Description
int

An integer constant representing the day of the week for the current model date.

getDayOfWeek(Date date)

Description

Returns an integer constant indicating the day of the week for the specified date. Possible return values are:

SUNDAY
MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
SATURDAY

Days of the week are numbered from SUNDAY (1) to SATURDAY (7).

Parameter

Name Type of value Description
date java.util.Date A date, presented in the form of the Date Java class.

Result

Type Description
int

An integer constant representing the day of the week for the specified date.

How can we improve this article?