Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Leap years
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00115008
Message ID:
00115102
Views:
15
Josh,

You can use the new ^ date constant specifier to avoid set date issues.

>This will work, but it depends on your SET DATE settings.
>
>>
>>Hi Jim,
>>Fox knows which years are leap years...
>>FUNCTION LeapYear
>>LPARAMETER nYear
>>RETURN CTOD("29/2/" + LTRIM(STR(m.nYear))) <> {}
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform