Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculate Leap Year
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00317731
Message ID:
00317772
Views:
13
The only "thing" with this solution is that you are depending on the DATE function to work properly...I am not saying that is doesn't work with every date, but I am not sure. With the other solutions, I am more sure that the necessary VFP functions work properly.

Joe

>>I need a function to calculate leap years. Any suggestions? Thanks,
>>
>Hi Raef,
>
>Another one...
*tdate is a date type
>llIsLeap = NOT EMPTY(DATE(YEAR(tdate), 2, 29))
>Hmm, this seems familiar.
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform