Article View: comp.os.msdos.programmer
Article #7246Re: finding the day of week from the date
From: Timothy Tin-Wai Chan
Date: Sat, 22 Jun 1991 16:17
Date: Sat, 22 Jun 1991 16:17
21 lines
1345 bytes
1345 bytes
In article <tr.677526990@samadams> 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
Technical Details
Message-ID:
<1468@ai.cs.utexas.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!gideonReferences:
<tr.677526990@samadams>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <tr.677526990@samadams> Organization: University of Texas at Austin, Dept. of Computer Sciences Lines: 21