Xref: utzoo comp.os.msdos.programmer:5944 alt.msdos.programmer:2800 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!orca!javelin.sim.es.com!rsimpkin From: rsimpkin@javelin.sim.es.com (Roger Simpkins) Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer Subject: Re: Manipulating Dates Keywords: date Message-ID: <1991Jun26.182132.27503@javelin.sim.es.com> Date: 26 Jun 91 18:21:32 GMT References: <1991Jun25.205213.2693@beaver.cs.washington.edu> Organization: Evans & Sutherland Computer Corp., Salt Lake City, Utah Lines: 12 goble@cs.washington.edu (Brian Goble) writes: >I need some C code to maniuplate dates. I need to be able to compute >the number of days between 2 dates (or maybe compute the date to a >"serial" date like Excel does--number of days from 1/1/1900). >I also need to be able to determine what day of the week a given day >is (e.g. Tuesday). ALL of the above functions contained in any ANSI C compiler. Try looking at time(), difftime(), asctime() and you may have some sucess.