Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Leap years
Message
From
08/07/1998 19:39:37
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00115008
Message ID:
00115522
Views:
18
>David,
>
>This is SET DATE independent:
>
>function IsLeap( pnYear )
>return ctod( "^" + str( pnYear, 4 ) + "/2/29" ) != {}
>

Well done. That surely is the most elegant correct answer.
Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform