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


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.
© 2014 Microsoft