Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date functions
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00190541
Message ID:
00190761
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform