Mail Archives: djgpp/1997/03/21/13:43:51
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/
> --
>
>
- Raw text -