I need to get the difference of two date time picker values and convert it to int or float,
And the next thing is from the date time picker i cant select the time from front end.
Only i cant select is the time only.
these the some code that i have tried to convert values from date time picker to float,
But i don't have any idea to select the time from date time picker,
string d1 = DateTimePickerFormat.Time();
string d2 = dateTimePicker2.ToString();
//DateTime d1 = new DateTimePicker1();
//DateTime d2 = new DateTimePicker();
int ans = (int.Parse(d1) - int.Parse(d2));
textBox1.Text = ans.ToString();