www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/21/13:43:51

Date: Fri, 21 Mar 1997 13:14:01 -0500 (EST)
From: "art s. kagel IFMX x2697" <kagel AT dg1 DOT bloomberg DOT com>
To: Michael Dylan Ryan <mdr6 AT dana DOT ucc DOT nau DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: Help with comparing dates
In-Reply-To: <5gq9ar$efi@ruby.ucc.nau.edu>
Message-Id: <Pine.D-G.3.91.970321131311.28140D-100000@dg1>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019