CreateDateTimeFromSqlString Method
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

SPUtility.CreateDateTimeFromSqlString Method

Windows SharePoint Services 3

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