Share via


SPRelativeDateTime.isFriendlyDateTimeEnabled method

Checks to see if a field is configured to render in a friendly relative datetime format

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

Syntax

'Declaration
Public Shared Function isFriendlyDateTimeEnabled ( _
    field As SPFieldDateTime _
) As Boolean
'Usage
Dim field As SPFieldDateTime
Dim returnValue As Boolean

returnValue = SPRelativeDateTime.isFriendlyDateTimeEnabled(field)
public static bool isFriendlyDateTimeEnabled(
    SPFieldDateTime field
)

Parameters

Return value

Type: System.Boolean
True if the field will render with a friendly datetime, otherwise false.

See also

Reference

SPRelativeDateTime class

SPRelativeDateTime members

Microsoft.SharePoint.Utilities namespace