Date: Fri, 21 Mar 1997 13:14:01 -0500 (EST) From: "art s. kagel IFMX x2697" To: Michael Dylan Ryan Cc: djgpp AT delorie DOT com Subject: Re: Help with comparing dates In-Reply-To: <5gq9ar$efi@ruby.ucc.nau.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII You can use the getdate() function to convert the strings to binary date structures accurately and compare the structures. Art S. Kagel, kagel AT ts1 DOT bloomberg DOT com On 20 Mar 1997, Michael Dylan Ryan wrote: > > Can someone help me with a function to compare two dates. I want to write > a function that will take a date string char *d = "03/01/97" and two other > date strings, start and end, and check to see if d is in between them. > > I have been working with dates for a while and can never get a function to > compare accurately 100% of the time. Any help appreciated. > > -- > Michael D. Ryan [Dark Brotherhood Software] > Email: dbrotherhood AT geocities DOT com > mdr6 AT dana DOT ucc DOT nau DOT edu > TheShogun AT aol DOT com > Programming Page: http://www.geocities.com/SiliconValley/Pines/5301/ > -- > >