Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many weeks in a month
Message
De
05/11/2007 17:23:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
05/11/2007 17:19:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01266837
Message ID:
01266845
Vues:
11
>Now this function always gives me 5....but months not always have 5 (the most have 4...)..i.e. October gives me 5 week...and only have 4...
>
>
>CB

The main question really is, how do you define a week.

You could use the week() function for the first of the month, and the first of the next month. But complications would arise for December (you would have to know how many weeks are in the year, and add that).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform