Connecting Tech Pros Worldwide Help | Site Map

how to determin if a date is in between two other dates?

  #1  
Old December 6th, 2006, 04:05 PM
Oliver Bleckmann
Guest
 
Posts: n/a
for i dont know how to work with date types in c++
this is a very difficult task for me
any suggestions how to start?


  #2  
Old December 6th, 2006, 04:25 PM
dasjotre
Guest
 
Posts: n/a

re: how to determin if a date is in between two other dates?



Oliver Bleckmann wrote:
Quote:
for i dont know how to work with date types in c++
this is a very difficult task for me
any suggestions how to start?
What date types in C++?

As far as I know there is only C stuff declared in time.h (or its C++
wrap ctime).

Be more specific.

  #3  
Old December 6th, 2006, 04:55 PM
Alf P. Steinbach
Guest
 
Posts: n/a

re: how to determin if a date is in between two other dates?


* Oliver Bleckmann:
Quote:
for i dont know how to work with date types in c++
this is a very difficult task for me
any suggestions how to start?
Take a look at the Boost library. It has some date and time stuff. As
I recall they messed up comparisions (necessary to add some simple
wrappers), but still usable.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
  #4  
Old December 6th, 2006, 04:55 PM
osmium
Guest
 
Posts: n/a

re: how to determin if a date is in between two other dates?


"Oliver Bleckmann" writes:
Quote:
for i dont know how to work with date types in c++
this is a very difficult task for me
any suggestions how to start?
Convert the three dates to Julian day number and do comparisons on those
dates.


Closed Thread