S
Simon Harvey
Hi everyone,
I need to be able to compare to dates to ensure that one is at least 1 day
greater than the other.
Im trying to do
if(toDate !> fromDate){
// handle
}
This works but the problem is its comparing the datetime down to the minute
and second. I need to be accurate only to the date. Otherwise, a comparison
for two datetimes that are within the same date, but of different times will
give a false positive.
Can anyone tell me how to ensure that one datetime is at least one day greater
than the other?
Many thanks
Simon
I need to be able to compare to dates to ensure that one is at least 1 day
greater than the other.
Im trying to do
if(toDate !> fromDate){
// handle
}
This works but the problem is its comparing the datetime down to the minute
and second. I need to be accurate only to the date. Otherwise, a comparison
for two datetimes that are within the same date, but of different times will
give a false positive.
Can anyone tell me how to ensure that one datetime is at least one day greater
than the other?
Many thanks
Simon