Share via


CreateDateTimeFromSqlString Method

The CreateDateTimeFromSqlString method of the SPUtility class converts the specified SQL string (in yyyymmdd hh:mm:ss format) to DateTime format.

Parameters

sqlTime   A string that contains date and time in SQL format.

Return Value

A System.DateTime object that provides the date and time.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security