The getDayOfWeek() method returns the day of week of this DayPilot.Date Class instance.
DayPilot.Date.getDayOfWeek()Returns a number from 0 to 6, where 0 corresponds to Sunday, 1 to Monday, and so on.
const dayOfWeek = DayPilot.Date.today().getDayOfWeek();