Returns the day of the week for the date.  

 

These are the built in Constants References to compare against:

'  Day of the Week Number for each day of the a week

SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY

     0             1                2                  3                    4                5                6

 

Syntax:

value = DayOfWeek( expression )

 

Parameter:

Description:

expression

Any numeric integer expression that resolves to a date in the format YYYYMMDD

 

Returns:

Day of the week for the given date

 

Example:

IF DayOfWeek( test.currentDate ) = MONDAY THEN
  ' When TRUE, execute the weekly update here.
ENDIF

 

Links:

Constants References

See Also:

Date Time Functions

 


Edit Time: 9/18/2020 11:59:27 AM


Topic ID#: 261

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software