Share via


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)

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