Export (0) Print
Expand All
Expand Minimize

SPUtility.CreateDateTimeFromSqlString Method

Converts the specified SQL string (in yyyymmdd hh:mm:ss format) to DateTime format.

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

public static DateTime CreateDateTimeFromSqlString(
	string sqlTime
)

Parameters

sqlTime
Type: System.String

A string that contains date and time in SQL format.

Return Value

Type: System.DateTime
A System.DateTime object that provides the date and time.
Show:
© 2014 Microsoft