Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!cs.umn.edu!uc!apctrc!drd!d.cs.okstate.edu!mmccorm
From: mmccorm@d.cs.okstate.edu (McCormick Martin)
Newsgroups: comp.os.msdos.programmer
Subject: Re: finding the day of week from the date
Message-ID: <1991Jun24.162124.24409@d.cs.okstate.edu>
Date: 24 Jun 91 16:21:24 GMT
Article-I.D.: d.1991Jun24.162124.24409
References:
<1468@ai.cs.utexas.edu>
Organization: Oklahoma State University, Stillwater
Lines: 14
I don't have the list of DOS function calls in front of me, right now, but
there definitely is a call which returns the current weekday in one of
the registers. 0 = Sunday and 6 = Saturday. I've written a couple of
small applications using the function and it works very well.There are four
DOS functions grouped together. They are called get date, set date, get
time, and set time. I believe the one you want for the weekday is
get date.
Martin McCormick
Amateur Radio WB5AGZ
Oklahoma State University
Computer Center
Data Communication sGroup
Stillwater, OK