Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculate Leap Year
Message
 
To
13/01/2000 12:49:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00317731
Message ID:
00317747
Views:
11
I wasn't aware of the INLIST function...

This is a cool implementation of it...

Joe

>dDate = a Date variable
>MOD(YEAR(dDate),4)=0 AND !(INLIST(MOD(YEAR(dDate),400),300,200,100))
>
>
>>I need a function to calculate leap years. Any suggestions? Thanks,
>>
>>Raef
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform