2.0
Table Of Contents
Functions
9-14 Using Calculations
DayOfWeek
The DayOfWeek function returns a number for the day of the week for
a given date. The values returned are: Sunday1, Monday2, Tuesday3,
Wednesday4, Thursday5, Friday6, and Saturday7.
Usage Example
DayOfWeek(Date())
If the current date is February 14, 1996
Then the calculation DayOfWeek(Date())returns 4 (Wednesday)
In the example below, the day of the week from the
Date
field appears in
the
Day of Week
field.
DayOfYear
The DayOfYear function returns the number for the day of the year for
a given date.
Usage Example
DayOfYear(Date())
If the current date is February 14, 1996
Then the calculation DayOfYear(Date()) returns 45
In the example below, the day of the year from the
Date
field appears in
the
Day of Year
field.