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.StringA string that contains the time to parse.
format
Type: System.StringA string that contains the time format to use.
dtTime
Type: System.DateTimeThe DateTime object to return as an output parameter.
Return Value
Type: System.Boolean
Returns Boolean.