C# convert timespan to date 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