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