Re: Testing for leap year?

Author: Ed Leafe

Posted: 2011-04-12 at 17:58:50

On Apr 12, 2011, at 5:57 PM, Sytze de Boer wrote:

> Whats wrong with the 15?

> It could be any number in a month (but short of 28)

It's inefficient, as it requires an extra call to DAY(mdate). A cleaner approach would be to select the day as 1, and subtract one day.

-- Ed Leafe

_______________________________________________

Post Messages to: ProFox@leafe.com

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/801CD752-8E6B-4EFF-BACD-8EA24FB18864@leafe.com

** 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.

©2011 Ed Leafe