Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get Monday's date from given date?
Message
From
16/04/2002 14:57:47
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
16/04/2002 14:50:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00645626
Message ID:
00645633
Views:
12
To find previous Monday, put this into a loop:

If !Dow(Date())=2 && Not Monday now...
For x =1 to 6
If DOW(Date()-x)=2
Messagebox("Got last Monday.")
Endif
Next
Endif

HTH,
Previous
Reply
Map
View

Click here to load this message in the networking platform