Share via


DateOptions.GetDateString method

Returns a string representation of the specified date and uses the specified format.

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

Syntax

'Declaration
Public Function GetDateString ( _
    simpleDate As SimpleDate, _
    format As String _
) As String
'Usage
Dim instance As DateOptions
Dim simpleDate As SimpleDate
Dim format As String
Dim returnValue As String

returnValue = instance.GetDateString(simpleDate, _
    format)
public string GetDateString(
    SimpleDate simpleDate,
    string format
)

Parameters

  • format
    Type: System.String

    A string that contains the format to use for the date string.

Return value

Type: System.String
A string that contains the specified date and uses the specified string format.

See also

Reference

DateOptions class

DateOptions members

Microsoft.SharePoint.Utilities namespace