Path: utzoo!attcan!uunet!deimos.cis.ksu.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxh.cso.uiuc.edu!mead From: mead@uxh.cso.uiuc.edu Newsgroups: comp.lang.pascal Subject: I need a date :) please help Message-ID: <13000001@uxh.cso.uiuc.edu> Date: 7 Apr 90 13:27:15 GMT Lines: 19 Nf-ID: #N:uxh.cso.uiuc.edu:13000001:000:884 Nf-From: uxh.cso.uiuc.edu!mead Apr 6 15:56:00 1990 Sorry if you caught this in another group (but then why did you look at this one?). I am writing a simulation in which the user will get (simulated) "memos". These memos will have embedded symbols which my code shall have to expand into appropriate dates (eg, @d3 might get expanded to the string, 'Tuesday April 3, 1990' - the date three days before I'm writing this note. Tomorrow, it would be expanded to 'Wednesday April 4, 1990', ...). QUERY: Does anyone know of *any* source for an intelligent algorythm for getting the day ('Monday, Tuesday, ...') from the date (4/3/90). My PC does it like lightning each time I issue the 'DATE' command, and if IBM can do it, anyone can - right? :) Textbooks or whatever are fine, but please don't direct me to existing software unless it's PD source code (in BASIC, C, Pascal, or FORTRAN). Thanks. -alan mead : mead@uxh.cso.uiuc.edu