Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date functions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00190541
Message ID:
00190761
Vues:
15
Probably faster (not that it would matter here):

SET CENTURY TO INT(YEAR(DATE())/100)

Vlad

>Actually, it just occurred to me what you're trying to do: SET CENTURY to the century of the current date. Try this:
>
>SET CENT TO VAL(LEFT(ALLT(STR(YEAR(DATE()))), 2))
>
>-Works great for me!
>Mark
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform