Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TimeDeltaAsString Method
Collapse the table of content
Expand the table of content

SPUtility.TimeDeltaAsString Method

Windows SharePoint Services 3

Returns the difference between two specified DateTime values as a string.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static string TimeDeltaAsString(
	DateTime dtEarlierTime,
	DateTime dtLaterTime
)

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.

Return Value

Type: System.String
A string that contains the difference between the two times.

Community Additions

ADD
Show:
© 2015 Microsoft