Hi Christof,
You're right.
But i'll trying not using the class operators (overload),
since i leave C++ for Java.
:-)
Cheers!
Marcin
Christof Nordiek napisał(a):
> Hi,
>
> instead of
> ts = dateTime2.Subtract(dateTime1);
>
> you als could say
>
> ts = dateTime2 - dateTime1;
>
> "Marcin Grzębski" <(E-Mail Removed)> schrieb im Newsbeitrag
> news:eedvc7$gi0$(E-Mail Removed)...
>> Hi Daves,
>>
>> Daves napisał(a):
>>> hi,
>>> how do I get the difference, in days, between two DateTime classes?
>> You'll need the TimeSpan.TotalDays.
>>
>> sample:
>> TimeSpan ts=dateTime2.Subtract(dateTime1);
>> double daysDifference=ts.TotalDays.
>>
>> With regards
>> Marcin
>
>
|