DateTime.getDayOfWeek

Retrieves the ISO 8601 day of the week on which @datetime falls (1 is Monday, 2 is Tuesday... 7 is Sunday).

Return: the day of the week

class DateTime
int
getDayOfWeek
()

Meta

Since

2.26