Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set century
Message
De
12/05/2005 11:03:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01013353
Message ID:
01013418
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>>Isn't it the same as
>>
lnYear = INT(YEAR(DATE())%100)+1
?
>>
>
>Could you please give me formula for the century?

If the year is 2005, you can get the 2-digit year (without the century) with:

2005 % 100

and the century with:

int(2005 / 100)
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