Can someone please tell me how to obtain the day of the week from the system date or some other source so that I can incorporate this into an AREV application. Thanks!
DayOfWeek=mod(DateVar,7)
0=Sunday … 6=Saturday, thus:
"SUNMONTUEWEDTHUFRISAT" DayOfWeek*3+1,3 will give the 3 digit text for it.
Tim,
Here's a nice little one liner for what you want:
Day_of_week=Field("Sunday*Monday*Tuesday*Wednesday*Thursday*Friday*Saturday", "*", Mod(Date(), 7) + 1)
Replace Date() with any variable that holds the date being used. Also, I believe credit goes to Steve Smith for the heart of this code. It's been a few years, I believe, since when I first saw it.
dbakke@srpcs.com
Many Thanks! Happy Thanksgiving!