Brooke Clarke wrote: > I almost have it working and found a problem while testing. Here are > some test dates and the results: > 28 Feb 1992 Sat - 0 works > 29 Feb 1992 Sun - 1 works > 28 Feb 2000 Mon - 2 works > 29 Feb 2000 Tue - 3 works > 1 Mar 2000 Wed - 4 works > 28 Feb 2004 Sat - shows Sun 1 > 29 Feb 2004 Sun - shows Mon 2 > > When manually calculated as follows 28 Feb 2004 comes out Sunday. What > am I doing wrong? I'm not sure what your source is for Zeller's Congruence. I found the Wikipedia article not that clear. Here are a couple other sources, with better explanations and also reference implementations based on Zeller's principle: http://www.merlyn.demon.co.uk/zeller-c.htm#OZC http://wwwcdf.pd.infn.it/MLO/Calendars/Notes.html#zeller Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist