Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of Weeks
Message
From
15/11/1999 12:39:41
 
 
To
13/11/1999 21:10:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00290989
Message ID:
00291233
Views:
29
>>Can anyone think of a formula or fast piece of code (I plan on running it from a SELECT) that can tell me the number of weeks since 11/1/99? I'm thinking some combination of the year and WEEK() might do it, but I haven't come up with anything.
>>
>>Thanks,
>>
>>Michelle
>
>It would be the difference of the weeks...
>
>Week( MyDate ) - Week( {^1999.11.1} )
>
>BOb
That works within the year. Between 1/1/2000 and 11/1/2000 (or thereabout) your expression would return a negative number.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform