Share via


SearchResults.SearchResultDateTimeFormat Property

Gets or sets the display format for the date and time.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
<ResourcesAttribute("SearchResults_DataTimeFormat_PropertyName", "Webpart__Custome_Property_Text",  _
    "SearchResults_DataTimeFormat_PropertyDescription")> _
Public Property SearchResultDateTimeFormat As QueryResultsDateTimeFormatType
    Get
    Set
'Usage
Dim instance As SearchResults
Dim value As QueryResultsDateTimeFormatType

value = instance.SearchResultDateTimeFormat

instance.SearchResultDateTimeFormat = value
[WebPartStorageAttribute(Storage.Shared)]
[ResourcesAttribute("SearchResults_DataTimeFormat_PropertyName", "Webpart__Custome_Property_Text", 
    "SearchResults_DataTimeFormat_PropertyDescription")]
public QueryResultsDateTimeFormatType SearchResultDateTimeFormat { get; set; }

Property Value

Type: Microsoft.SharePoint.Portal.WebControls.QueryResultsDateTimeFormatType
Member of the Microsoft.SharePoint.Portal.WebControls.QueryResultsDateTimeFormatType enumeration that determines the display format for the date and time.

Remarks

The SearchResultDateTimeFormat property is read/write. Possible values for this property are SearchResultDateTimeFormat.Standard and SearchResultDateTimeFormat.Customized. The standard format displays date and time in short date format. The customized format is language specific.

See Also

Reference

SearchResults Class

SearchResults Members

Microsoft.SharePoint.Portal.WebControls Namespace