DateOptions.ParseShortDate Method

Returns a SimpleDate object as an output parameter that represents the specified date string and uses the current ShortDatePattern format.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)> _
Public Function ParseShortDate ( _
    inputDate As String, _
    <OutAttribute> ByRef selectedDate As SimpleDate _
) As Boolean
'Usage
Dim instance As DateOptions
Dim inputDate As String
Dim selectedDate As SimpleDate
Dim returnValue As Boolean

returnValue = instance.ParseShortDate(inputDate, _
    selectedDate)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)]
public bool ParseShortDate(
    string inputDate,
    out SimpleDate selectedDate
)

Parameters

  • inputDate
    Type: System.String

    A string that contains the date to parse.

Return Value

Type: System.Boolean
Returns Boolean.

See Also

Reference

DateOptions Class

DateOptions Members

Microsoft.SharePoint.Utilities Namespace