Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set century
Message
From
12/05/2005 11:03:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01013353
Message ID:
01013418
Views:
14
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform