Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
After date()
Message
De
18/11/2016 20:17:06
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01643685
Message ID:
01643686
Vues:
100
>what is the simplest way to express
>if date() after December 15 2016
>do this
>endif
>
>tnx
>Karen

You could compare against a date constant of the format {^yyyy.mm.dd} (note the use of the caret symbol -- specifies yyyy.mm.dd format rather than format that would vary by locale or by SET DATE configuration.)
if date() > {^2016.12.15} then
    * some code
endif
alternatively you could use call the DATE() function with the parameters year, month and day value --- DATE(yyyy,mm,dd)
if date() > date(2016.12.15) then
    * some code
endif
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform