Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate no. of days in a month
Message
De
05/01/2000 23:25:33
 
 
À
05/01/2000 23:21:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00313726
Message ID:
00313730
Vues:
26
>>I need a function or 'select statemt' that can calculate the no. of distinct days in a month. For example, I would like the fn to calculate the total no of Sundays or any of the other 6 days in January. Preferably there is to be no keying of dates. Thanks in advance.
>
>function DaysInMonth( tdDateInMonth )
>local ldDayNextMonth
>ldDayNextMonth = gomonth(tdDateInMonth, 1)
>return day(ldDayNextMonth - day(ldDayNextMonth))
>
>I'm sure that some one will post an even shorter one.

OOPS! :))
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform