? =?ISO-8859-2?Q?Marcin_Grz=EAbski?= Sep 15, 2006 #2 Hi Daves, Daves napisa³(a): hi, how do I get the difference, in days, between two DateTime classes? Click to expand... You'll need the TimeSpan.TotalDays. sample: TimeSpan ts=dateTime2.Subtract(dateTime1); double daysDifference=ts.TotalDays. With regards Marcin
Hi Daves, Daves napisa³(a): hi, how do I get the difference, in days, between two DateTime classes? Click to expand... You'll need the TimeSpan.TotalDays. sample: TimeSpan ts=dateTime2.Subtract(dateTime1); double daysDifference=ts.TotalDays. With regards Marcin
D Daves Sep 15, 2006 #3 thx, exactly what was needed Marcin Grzêbski said: Hi Daves, Daves napisa³(a): You'll need the TimeSpan.TotalDays. sample: TimeSpan ts=dateTime2.Subtract(dateTime1); double daysDifference=ts.TotalDays. With regards Marcin Click to expand...
thx, exactly what was needed Marcin Grzêbski said: Hi Daves, Daves napisa³(a): You'll need the TimeSpan.TotalDays. sample: TimeSpan ts=dateTime2.Subtract(dateTime1); double daysDifference=ts.TotalDays. With regards Marcin Click to expand...
C Christof Nordiek Sep 15, 2006 #4 Hi, instead of ts = dateTime2.Subtract(dateTime1); you als could say ts = dateTime2 - dateTime1;
? =?ISO-8859-2?Q?Marcin_Grz=EAbski?= Sep 15, 2006 #5 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 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):