DayPilot.Date.dayOfWeek

The dayOfWeek() method returns the day of week for the specified date.

Declaration

DayPilot.Date.dayOfWeek()

Return Value

Returns a number specifying the day of week: 0 = Sunday, 1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday.

Example

const dayOfWeek = DayPilot.Date.today().dayOfWeek();

See Also

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript