DateOptions.ParseDate 方法

返回一个SimpleDate对象作为输出参数值,该值代表指定的日期字符串中指定的格式。

命名空间:  Microsoft.SharePoint.Utilities
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Function ParseDate ( _
    inputDate As String, _
    format As String, _
    <OutAttribute> ByRef selectedDate As SimpleDate _
) As Boolean
用法
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
)

参数

  • inputDate
    类型:System.String

    一个字符串,包含要分析的日期。

  • format
    类型:System.String

    一个字符串,包含要使用的日期格式。

返回值

类型:System.Boolean
返回 Boolean

另请参阅

引用

DateOptions 类

DateOptions 成员

Microsoft.SharePoint.Utilities 命名空间