Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any function for check if its a leap year ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00756383
Message ID:
00756405
Views:
9
George
lIsLeapYr = (nyear % 4 = 0) AND (nyear % 400 = 0)
it works for 2000, but not for 2004. why ?

txs


>>hello all
>>
>>is there any function for check if current year its a leap year ?
>>
>>txs
>
>Try
lIsLeapYr = (nyear % 4 = 0) AND (nyear % 400 = 0)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform