Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreateDateTimeFromSqlString method
Collapse the table of content
Expand the table of content

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)

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:
© 2015 Microsoft