I want to convert a DateTime instance into a TimeSpan instance, is it possible?
DateTime
TimeSpan
I\'ve looked around but I couldn\'t find what I want, I on
Try the following code.
TimeSpan CurrentTime = DateTime.Now.TimeOfDay;
Get the time of the day and assign it to TimeSpan variable.