DayOfWeek()

Syntax

Result = DayOfWeek(Date)
Description
Returns the weekday of the specified date.

Parameters

Date The date value from which to extract the weekday.

Return value

Returns a number between 0 and 6 representing the day of the week, -1 otherwise:
  0 : Sunday
  1 : Monday
  2 : Tuesday
  3 : Wednesday
  4 : Thursday
  5 : Friday
  6 : Saturday

Example

  Debug DayOfWeek(Date(2006, 10, 30, 0, 0, 0))  ; Outputs '1' for Monday.

See Also

FormatDate(), Year(), Month(), Day(), Hour(), Minute(), Second()

Supported OS

All

<- Day() - Date Index - DayOfYear() ->