DayOfWeek(Date date)

Returns the number of days by which the given date follows the first day of the week (Sunday returns 0).

Parameters

date
The date to check.

Returns

Numeric

Remarks

If the date value is null, the system returns the numeric value 0.

Examples