Hi
How to find the difference of two days to calculate no of days
Regards
Manju
Hi
How to find the difference of two days to calculate no of days
Regards
Manju
Hi MAnjusha,
int NoofDays;
;
NoofDays = Date1 - Date2;
Regards,
Kuppusamy S
Hi MAnjusha,
What Kuppusamy S said will with. If you are working with dateTimes, its a little different but the same idea:
int numDays;
numDays = DateTimeUtil::date(utcDateTime1) - DateTimeUtil::date(utxDateTime2);
Also, here is a link to the DateTimeUtil MSDN entry; its pretty handy: http://msdn.microsoft.com/en-us/library/cc619601.aspx
Best Regards,
Nathan C.
i think
number of days = end date - start date;
in above start date < end date
Thank u
Regards
Manjusha.D