check if the date given is within the specific range please help...
-
my problem is i am about to enter new dates: for example the new date is 6/6/2007 8:15:16 then i need to check if this new date will fall between an existing date... existing date : 5/6/2007 8:23:54 and 7/6/2007 9:45:10 how could i be able to do that... can you give me a solution... i dont know if there is a predefined function for that... thnx!
-
my problem is i am about to enter new dates: for example the new date is 6/6/2007 8:15:16 then i need to check if this new date will fall between an existing date... existing date : 5/6/2007 8:23:54 and 7/6/2007 9:45:10 how could i be able to do that... can you give me a solution... i dont know if there is a predefined function for that... thnx!
The < operator works with DateTime. So create your two range datetimes, and then check if your date > one and < the other. I'd write a helper function to do this.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )