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.StringA string that contains the date to parse.
format
Type: System.StringA string that contains the date format to use.
selectedDate
Type: Microsoft.SharePoint.Utilities.SimpleDateThe SimpleDate object to return as an output parameter.
Return value
Type: System.Boolean
Returns Boolean.