다음을 통해 공유


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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)> _
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)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)]
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