Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!gideon
From: gideon@cs.utexas.edu (Timothy Tin-Wai Chan)
Newsgroups: comp.os.msdos.programmer
Subject: Re: finding the day of week from the date
Message-ID: <1468@ai.cs.utexas.edu>
Date: 22 Jun 91 16:17:56 GMT
References:
Organization: University of Texas at Austin, Dept. of Computer Sciences
Lines: 21
In article tr@samadams.princeton.edu (Tom Reingold) writes:
>Here is a sample program that finds the day of the week, given the
>date. It works for this century only. Making it work for any century
>is "left as an exercise to the reader".
[...]
Can you tell the day of the week by using DOS interrupts? When you use
the DOS command DATE, it will say something like:
Current date is Sat 6-22-1991
Enter new date (mm-dd-yy):
So apparently DOS finds the day of the week itself. The question is,
how can I use this facility in DOS?
--
"I am immersed in sadness and joy | Timothy T. Chan
and your touch brings me pain | gideon@cs.utexas.edu
but your tears, Lord | Dept. of CS
wash all the shame away" -- Sean Colletta (1991) | U of Texas at Austin