Newsgroups: comp.lang.smalltalk
From: andy@kahuna.demon.co.uk (Andy Deighton)
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!gatech!swrinde!pipex!peernews.demon.co.uk!kahuna.demon.co.uk!andy
Subject: Re: day of week algorithm
Distribution: world
References: <3isq0u$8hg@brtph500.bnr.ca>
Reply-To: andy@kahuna.demon.co.uk
X-Newsreader: Demon Internet Simple News v1.29
Lines: 22
X-Posting-Host: kahuna.demon.co.uk
Date: Tue, 28 Feb 1995 17:12:05 +0000
Message-ID: <793991525snz@kahuna.demon.co.uk>
Sender: usenet@demon.co.uk

In article <3isq0u$8hg@brtph500.bnr.ca> ted.lowery@nt.com "Ted Lowery" writes:

> Hi all-
> 
> Anybody out there know the algorithm to calculate the day of the
> week from a date.  I remember from college days there is a formula, 
> but I cannot seem to find it.
> 
> Thanks,
> -Ted
> ted.lowery@nt.com
> 
Ted,
I don't know what flavour of ST you are referring to (if any) but ENFIN
Smalltalk has many 'conversion' methods in its Date class that will take a
Date object and return much information such as day of week, week number,
month name etc etc.

-- 
Andy Deighton ->
Home : andy@kahuna.demon.co.uk
Work : adeighton@easel.com
