Link to home
Start Free TrialLog in
Avatar of jwebster77
jwebster77

asked on

Get day of week in CR based on current date.

Hello experts.  Here is what I need to do, I need to evaluate what the current day is.  So, basically something like this

If CurrentDate = Monday Then
Do something
Else If CurrentDate = Tuesday Then
Do something
etc., etc.

Can anyone tell me how to go about doing this.  Thanks!
ASKER CERTIFIED SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jwebster77
jwebster77

ASKER

Thanks!  Trying it now!
Peter beat me to it.  I'll just add that you can also add a second argument to DayOfWeek if you want the week to start on some day besides Sunday.  For example, DayOfWeek (CurrentDate, crTuesday).  crMonday, crTuesday, etc. are CR constants for the day numbers.  Or, you can just use 1, 2, etc.

 James