This may or may not be useful, but Zeller's Congruence is just a cool thing - useful for validating leap years too, if you follow th logic: http://en.wikipedia.org/wiki/Zeller's_congruence Rolf Brooke Clarke wrote: > Hi: > > I'm looking for a couple of code snippets, one that will retrieve Sun, > Mon, Tue, Wed, Thu, Fri, Sat when given the day number and another that > will retrieve Jan, Feb. . . . Dec when given the month number. These > will be used to display the ASCII strings on an LCD. Also looking for > calendar code for leap year checking. > > Microchip App notes 582 and 587 have code for driving LCDs using the > 4-bit mode, but they are buggy. Is there an app note that works with > the 4-bit mode? > > Thanks, > > Brooke > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist