Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last day of month
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00425898
Message ID:
00425931
Vues:
13
>Dear all
>
>i wanna know who can i (with any routuine or function en vfp 6.0) detect the last day of the current month? or if today its the last day of the current month.
>
>
>thanks in advance
>
>best regards

>gomonth(date(),1)-day(date())

Wayne,

I am afraid, your code will not work corretly for the last days of months like January:
lddate={^2000-01-31}
gomonth(lddate,1)-day(lddate) will return {^2000-01-29}

Regards,

Yuri
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform