Xref: utzoo comp.sources.wanted:14857 alt.sources.wanted:808 Newsgroups: comp.sources.wanted,alt.sources.wanted Path: utzoo!utgpu!watserv1!watmath!att!cbfsb!cbnewsc!dcon From: dcon@cbnewsc.att.com (david.r.connet) Subject: date -> int -> date conversion Organization: AT&T Bell Laboratories Distribution: na Date: Mon, 14 Jan 91 21:59:42 GMT Message-ID: <1991Jan14.215942.10445@cbnewsc.att.com> Followup-To: poster Lines: 17 I'm looking for an algorithm to translate a date (mm/dd/yyy) to an int and back again. It is important that the date be the some. So rounding off with leap years isn't good enough. (Currently, I figure how far into the year it is then add 'days += (int)((float)year * 365.25)', but this can allow round-off to occur.) I'm sure it's not that complex, but you know how time is... Please email me as articles often expire before I get a chance to read them again. If enough people are interested, I will post a summary. Thanks in advance. Dave Connet dcon@iwtng.att.com