Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I get the day?
Message
From
30/05/2014 01:47:07
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
29/05/2014 17:18:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01600946
Message ID:
01600964
Views:
104
>From a digit (1 to 7) how do I get the day? I forgot if there is a native function in Fox to do that.
>
>For example
>
>GiveMeTheDay( 2) would give a result of "Monday"

Try
FUNCTION cWeekDay
 LPARAMETERS;
  tnDayNumber

 RETURN CDOW(DATE()-DOW(DATE(),0)+tnDayNumber)
ENDFUNC &&cWeekDay
Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform