Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any function for check if its a leap year ?
Message
From
26/02/2003 19:53:19
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00756383
Message ID:
00758527
Views:
13
>But it's doing some extra steps, which you can remove without making it >(IMHO) less readable.

>In the first line, if you start by finding March 1st instead of February >1st, you don't need the GOMONTH() in the second line.

>Also, why is the first line using slower CTOD() instead of DATE()? Instead >of CTOD("02/01/"+STR(YEAR(tdate))), I'd use DATE(YEAR(tddate)),03,01).

You are absolutely right, on both accounts. I guess I used CTOD out of bad habit! There are so many ways to do things in Fox.
Carole Shaw
Fred Hutchinson Cancer Research Center

Eagles may soar, but weasels don't get sucked into jet engines.
Previous
Reply
Map
View

Click here to load this message in the networking platform