Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ulowell!tegra!vail From: vail@tegra.UUCP (Johnathan Vail) Newsgroups: comp.sys.ibm.pc Subject: Re: calendar code Message-ID: <538@atlas.tegra.UUCP> Date: 5 Jul 89 13:15:14 GMT References: <82362@ti-csl.csc.ti.com> Followup-To: comp.sys.ibm.pc Organization: Tegra, Inc., Billerica, MA Lines: 18 In-reply-to: Donahue@TILDE's message of 27 Jun 89 14:09:31 GMT In article <82362@ti-csl.csc.ti.com> Donahue@TILDE (Them bats is smart; they use radar!) writes: I'm looking for a Turbo C function that, when given an arbitrary date, will return the day of the week that the date falls on. E.G. given 11 6 1991 [nov 6, 1991], the function returns WEDNESDAY (or 3, if SUNDAY = 0). There is something called Zeller's Congruence which will do this. If there is interest I can dig it up from home and post it. Stattinger's Law: It works better if you plug it in. _____ | | Johnathan Vail | tegra!N1DXG@ulowell.edu |Tegra| (508) 663-7435 | N1DXG@145.110-,145.270-,444.2+,448.625- -----