c# convert time to timespan code example
Example: c# convert datetime to timespan
Add .TimeofDay to the datetime value to make it of type TimeSpan
DateTime.TimeOfDay
Add .TimeofDay to the datetime value to make it of type TimeSpan
DateTime.TimeOfDay