SPUtility.TimeDeltaAsString method
SharePoint 2013
Returns the difference between two specified DateTime values as a string.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- dtEarlierTime
- Type: System.DateTime
A System.DateTime object that contains the earlier date and time.
- dtLaterTime
- Type: System.DateTime
A System.DateTime object that contains the later date and time.