Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best to check that diff betwen 2 dates is 1
Message
De
25/05/2007 16:38:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
25/05/2007 16:35:50
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
Divers
Thread ID:
01228601
Message ID:
01228602
Vues:
12
Use the gomonth() function, with a difference of 12 month.

E.g., gomonth(date(), 12) is one year from now.

>I need to check that difference between 2 date is 1 year. For example (for user)
>
>01/01/1991 12/31/1991 is good
>01/01/1992 01/01/1991 is good
>12/31/1991 12/31/1992 is good
>02/01/1991 02/01/1991 is good
>
>other dates which are greater than year ( or 1 year plus 1 day) are bad.
>
>Is there a way of doing this?
>
>TIA
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