DateOptions.ParseDate method

Returns a SimpleDate object as an output parameter that represents the specified date string in the specified format.

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

Syntax

'Declaration
Public Function ParseDate ( _
    inputDate As String, _
    format As String, _
    <OutAttribute> ByRef selectedDate As SimpleDate _
) As Boolean
'Usage
Dim instance As DateOptions
Dim inputDate As String
Dim format As String
Dim selectedDate As SimpleDate
Dim returnValue As Boolean

returnValue = instance.ParseDate(inputDate, _
    format, selectedDate)
public bool ParseDate(
    string inputDate,
    string format,
    out SimpleDate selectedDate
)

Parameters

  • inputDate
    Type: System.String

    A string that contains the date to parse.

  • format
    Type: System.String

    A string that contains the date format to use.

Return value

Type: System.Boolean
Returns Boolean.

See also

Reference

DateOptions class

DateOptions members

Microsoft.SharePoint.Utilities namespace