A TimeSpan is a .NET structure that represents a time interval. You can check more details about it here: https://docs.microsoft.com/en-us/dotnet/api/system.timespan?view=net-5.0
Methods:
You need to send two dateTimes and the method will return a text output (dd.HH:mm:ss:ms).
You need to send two dateTimes and the method will return integer outputs, that are the TimeSpan properties.
The StartDateTime is the oldest date and the EndDateTime is the newest.