Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of Weeks
Message
De
16/11/1999 23:54:29
 
 
À
15/11/1999 17:25:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00290989
Message ID:
00291785
Vues:
27
Bob,
If you calculate usung the actual dates with the latter date first, you can divide bt seven and get yhe number of weeks. You will be able to span years.

Tom Molloy



>>>>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.
>>If you use an absolute function, the number returned will always be a positive value.
>>
>>Tom Molloy
>
>Yep... but, there was a flaw in my logi, since weeks is the number of weeks from the beginning of the year, this will only work with two dates that fall in the same year.
>
>Woe is me. Number of Days / 7 is the best way to do it.
>
>BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform