On 23 Jun 2006 at 19:40, Brooke Clarke wrote: > 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. Andrew Warren has a really cool algorithm for this. Maybe it's on his webpage, it's also something that he posted to the list within the last year when someone else asked about it. Cheers, Bob -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist