Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!charon!hydra.unm.edu!stone From: stone@hydra.unm.edu (Andrew Stone CS.DEPT) Newsgroups: comp.sys.mac.hypercard Subject: Re: date Keywords: help date script Message-ID: <4982@charon.unm.edu> Date: 29 Apr 89 22:47:07 GMT References: <1814@blake.acs.washington.edu> Sender: root@charon.unm.edu Reply-To: stone@hydra.unm.edu.UUCP (Andrew Stone CS.DEPT) Distribution: usa Organization: University of New Mexico, Albuquerque, NM Lines: 21 In article <1814@blake.acs.washington.edu> mm@blake.acs.washington.edu (Eric Gorr) writes: >Hello, I was wonding if anyone had a script, XMCD, etc.. that if I were to >tell it (format doesn't matter) 4/27/89 it would tell me that it was a >thursday. Try this: function getDayOfWeek myDate convert myDate to long date return first item of myDate end getDayOfWeek example: put getDayOfWeek(2/12/56) returns: Sunday andrew ||<<++>>||<<-->>||<<==>>||<<++>>||<>||<<++>>||<<-->>||<<==>>||<<++>>|| !! Andrew Stone !! the fictive milieu of !! !! stone@hydra.unm.edu <> contemporary society! !! ||<<++>>||<<-->>||<<==>>||<<++>>||<>||<<++>>||<<-->>||<<==>>||<<++>>||