Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Previous week date range
Message
From
02/05/2013 12:10:46
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01572482
Message ID:
01572487
Views:
55
You can use DOW() to figure out the day of the week. I think Sunday is 0. (VFP Help will tell you). Then you can use date math, DATE()-14 for two weeks ago.


>Hi guys,
>
>I need the previous week date range (mon-sun), for example if I run the program today thursday 5/2/2013, it will return the range for the previous week 4/22 - 4/28, I will run the program on mondays so if I would have ran it this monday would have returned 4/22 - 4/28 as well. I need to get the date range from 2 weeks ago as well.
>
>Thanks!
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform