Path: utzoo!attcan!uunet!snorkelwacker!usc!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxh.cso.uiuc.edu!mead From: mead@uxh.cso.uiuc.edu Newsgroups: comp.sys.ibm.pc Subject: I need a date :) please help Message-ID: <19500060@uxh.cso.uiuc.edu> Date: 7 Apr 90 09:39:16 GMT Lines: 20 Nf-ID: #N:uxh.cso.uiuc.edu:19500060:000:885 Nf-From: uxh.cso.uiuc.edu!mead Apr 6 16:06: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