> -----Original Message----- > From: [email protected] [mailto:[email protected]] > On Behalf Of MB Software Solutions,LLC > Sent: Wednesday, April 13, 2011 8:32 AM > To: [email protected] > Subject: Re: Testing for leap year? > > I think this has to be the best from VFP: > > IsLeapYear = NOT EMPTY(DATE(YEAR(This.EndDate),2,29)) > > If you can see any flaws in this approach, please say so, but you don't > have to list all the other ways that are either non-VFP or more than > this one line. <g>
Or just say screw it and use a lookup table.... (you didn't think this was going to END did you??? <g>) 2012, 2016, 2020, 2024, 2028, 2032, 2036, 2040, 2044, 2048, 2052, 2056, 2060, 2064, 2068, 2072, 2076, 2080, 2084, 2088, 2092, 2096 p.s. neat little website w/ interesting looking calendar utilities and other goodies: http://www.timeanddate.com/date/leapyear.html Thanks, Matthew Jarvis || Business Systems Analyst IT Department McKenzie-Willamette Medical Center 1460 G Street, Springfield, OR 97477 || Ph: 541-744-6092 || Fax: 541-744-6145 -------------------------------------------------------------------------- Disclaimer: This electronic message may contain information that is Proprietary, Confidential, or legally privileged or protected. It is intended only for the use of the individual(s) and entity named in the message. If you are not an intended recipient of this message, please notify the sender immediately and delete the material from your computer. Do not deliver, distribute or copy this message and do not disclose its contents or take any action in reliance on the information it contains. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/69f310c05dd83c48a84ba3769ce1ecf804829...@tntriexevs02.triadhospitals.net ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

