共用方式為


DateOptions.ParseTime Method

Returns a DateTime object as an output parameter that represents the specified time string in the specified format.

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

Syntax

'Declaration
Public Function ParseTime ( _
    stTime As String, _
    format As String, _
    ByRef dtTime As DateTime _
) As Boolean
'Usage
Dim instance As DateOptions
Dim stTime As String
Dim format As String
Dim dtTime As DateTime
Dim returnValue As Boolean

returnValue = instance.ParseTime(stTime, _
    format, dtTime)
public bool ParseTime(
    string stTime,
    string format,
    ref DateTime dtTime
)

Parameters

  • stTime
    Type: System.String

    A string that contains the time to parse.

  • format
    Type: System.String

    A string that contains the time format to use.

  • dtTime
    Type: System.DateTime

    The DateTime object to return as an output parameter.

Return Value

Type: System.Boolean
Returns Boolean.

See Also

Reference

DateOptions Class

DateOptions Members

Microsoft.SharePoint.Utilities Namespace