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:
00756549
Views:
10
if day(date(nyear,3,1)-1)=29 it's a leap year

Peter

>>>>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,
>>
>>It's equally divisible by 400. 2000 was a leap year
>
>Lol I didn't correct myself fast enough. You are correct.
>As soon as I read your reply it made perfect sense that it was 400 and not 100.
Peter Cortiel
Previous
Reply
Map
View

Click here to load this message in the networking platform