Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any function for check if its a leap year ?
Message
From
21/02/2003 16:07:42
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00756383
Message ID:
00756417
Views:
9
How's this expression?

IIF((m.nYear%100)==0, (m.nYear%400)==0, (m.nYear%4)==0)

This of course won't be accurate calendar years prior to 1582. Though if you're only concerned with dates after mid-20th century then this should generally work.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform