DBohner-(db)
Legendary Poster
Howdy!
I have the following snip of code:
<snip>
if (DateDifference(&lpdsCache->StartDate, &lpdsCache->EndDate) > 0)
{
Do A Whole Bunch of Stuff
}
</snip>
If
- lpdsCache->StartDate is 1/1/2015
- lpdsCache->EndDate is 12/31/2015
Is the Result a Positive or a Negative Number?
I looked at the .CHM - and defines the values as
===============================
Return Value Description
0 - Days are the same
Negative number - End date is earlier than start date
Positive number - End date is later than start date
But, my fried brain doesn't compute what an 'Earlier Date' vs a 'Later Date' really is... It just seems to be worded all wonkie! If they had just drawn a picture, maybe even used numbers - ... ugh....
I think it's time I put down the debugger and go xbox something...
(db)
I have the following snip of code:
<snip>
if (DateDifference(&lpdsCache->StartDate, &lpdsCache->EndDate) > 0)
{
Do A Whole Bunch of Stuff
}
</snip>
If
- lpdsCache->StartDate is 1/1/2015
- lpdsCache->EndDate is 12/31/2015
Is the Result a Positive or a Negative Number?
I looked at the .CHM - and defines the values as
===============================
Return Value Description
0 - Days are the same
Negative number - End date is earlier than start date
Positive number - End date is later than start date
But, my fried brain doesn't compute what an 'Earlier Date' vs a 'Later Date' really is... It just seems to be worded all wonkie! If they had just drawn a picture, maybe even used numbers - ... ugh....
I think it's time I put down the debugger and go xbox something...
(db)