Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date of week function?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Date of week function?
Miscellaneous
Thread ID:
01671464
Message ID:
01671464
Views:
79
Hi,

VFP 9 has a nice function Week() (determines week by the date). I cannot find in Help and maybe I am missing it, if there is a revers function, to determine date defining the week by the week number? For example, if the Week() is used as follows:
nWeek = Week( date(), 3, 2 )   && where 2 defines that the week must have Monday    
Then I would use the reverse function as:
dMonday = WDate( nWeek, 3, 2 )
Of course, I could write such a function (WDate()) but it VFP has it, why not use it.

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform