The getDayOfWeek() method returns the day of week of this DayPilot.Date Class instance.
Declaration
DayPilot.Date.getDayOfWeek()Return Value
Returns a number from 0 to 6, where 0 corresponds to Sunday, 1 to Monday, and so on.
Example
const dayOfWeek = DayPilot.Date.today().getDayOfWeek();See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot