Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculating how many days have passed in a year?
Message
De
01/12/1998 19:27:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00163001
Message ID:
00163040
Vues:
34
Use:

lnDays = ldMyDate - gomonth(ldMyDate, - month(ldMyDate) + 1) + day(ldMyDate)

It does not depend on SET DATE or other date settings.

Vlad

>Is there an easy way to calculate how many days have passed since New Year's? I want to make sure it takes consideration of leap year too.
>
>TIA,
>James McCourt
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform