I am calculating the difference between dateTimePicker2
and dateTimePicker1
and converting it to minutes as this,
durinmin = Convert.ToInt32((dateTimePicker2.Value - dateTimePicker1.Value).TotalMinutes);
Problem is, for example if the difference value is "00:17:40", the durinmin = 18
. But I want to hold the value of only completed minutes, i.e., durinmin=17
is the value I want my program to consider. How to get it?