Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a function that returns the number of days in a
Message
 
À
10/11/2000 12:29:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00440276
Message ID:
00440285
Vues:
13
>>>Is there a function that returns the number of days in a month?
>>>example...
>>>jan has 31 days
>>>days_in_a_month = (some_function,jan)
>>>?days_in_a_month
>>>31....any ideas?
>>
>>cMonth = "01"
>>cYear = "2000"
>>? day(gomonth(ctod(cmonth+"/01/"+cYear),1)-1)
>
>This is actually a Fox 2.6 solution which will work in VFP.
>Obviously, this assumes American dates.

You can get into trouble assuming a certain date format.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform