Published
- 1 min read
change timeofday to float c#
The solution for this is noted below
change timeofday to float c#
Solution
//Use the Total... Property, e.g for days:
var t = (date2 - date1); //date2 being a date after date1
var total = t.TotalDays;
Try other methods by searching on the site. That is if this doesn’t work