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:
00756392
Views:
12
>>>hello all
>>>
>>>is there any function for check if current year its a leap year ?
>>>
>>>txs
>>
>>If I remember correctly. If the year is divisible by 4 and it is not divisible by 100. By not divisible by 100 I mean the year 2000,2100,2200,.. are not leap years.
>>
>>Einar
>
>I'll correct myself after reading George's reply. It sould be not divisible by 400 instead of 100
>
>I just thought of another way. Check if Feb.29 exist for the year you are testing.
>

Like this
IsLeapYr = NOT EMPTY(DATE(2000, 2, 29))
?
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform