共用方式為


DateOptions.ParseMonthDayDate Method

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

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)> _
Public Function ParseMonthDayDate ( _
    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.ParseMonthDayDate(inputDate, _
    selectedDate)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)]
public bool ParseMonthDayDate(
    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