Mail Archives: djgpp/1997/03/29/00:16:33
> 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.
>
I find that converting a date to the UNIX 'date and time' long number format,
an easy way to deal with dates. Easy to compare, easy to add/subtract n
day(s) and easy to convert back into a conventional date format because most
c libs have functions to do this.
Cheers Richard
- Raw text -