Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!datapg!com50!com2serv!jeff From: jeff@com2serv.C2S.MN.ORG (Jeffery S. Wilson) Newsgroups: comp.lang.pascal Subject: Re: Day of Week Algorithm Message-ID: <2689@com50.C2S.MN.ORG> Date: 25 Sep 89 23:14:54 GMT References: <6570@hubcap.clemson.edu> Sender: usenet@com50.C2S.MN.ORG Reply-To: jeff@com2serv.c2s.mn.org (Jeffery S. Wilson) Organization: Com Squared Systems, Mendota Heights, MN Lines: 24 In article <6570@hubcap.clemson.edu> bo@hubcap.clemson.edu (Bo Slaughter) writes: > >Does anyone out there have a day of the week algorithm in pascal? >I want to be able to pass to it the date, and get the day out. >Something like this: > >function dayofweek(day,month,year:integer):integer; > >Pass to it 09 as the month, 24 as the day, and 1989 as the year, and get >1 as the output (sunday). > >Thanks, >Bo Slaughter Come on Bo, any reasonably competent programmer should be able to come up with a function like this in a few minutes. Why waste net.dollars begging for an answer? I'm sure someone there at Clemson would be able to help you. Then again, maybe not. Is this a programming assignment for a computer science course you are taking? If you can't figure this one out on your own, you have no chance pal. ------------------------------------------------------------------------------ Jeffery S. Wilson | jeff@c2s.mn.org | {amdahl|hpda}!bungia!com50!jeff