DB2DateTime.Parse(String szDateTime, int precision) method

Returns a new DB2DateTime structure value that is based on the szDateTime string and specified precision value.

The DB2DateTime.Parse(String szDateTime, int precision) method is available for use only with the Informix database server.

Namespace:
IBM.Data.DB2Types
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Shared Function Parse (szDateTime As String, precision As Integer) As DB2DateTime
[C#]
public static DB2DateTime Parse (String szDateTime, int precision)
[C++]
public:
static DB2DateTime Parse (String szDateTime, int precision)
[JScript]
public static function Parse (szDateTime : String, precision : int) : DB2DateTime

Parameters

szDateTime
A string representation of a date time. The szDateTime string must be in Y-M-DD hh:mm:ss.f format.
Y
An integer that indicates the year.
M
A number that represents the month in a year.
D
A number that represent the day in a month.
h
A number that represents the hour of the day.
m
A number that represents the minute of the hour.
s
A number that represents the second of the minute.
f
The fractional portion of the seconds. Precision beyond five decimal places is ignored.
precision
An integer value that specifies the precision of the DB2DateTime value.

Return value

Returns a new DB2DateTime structure with a value that is based on the szDateTime parameter, and precision that is specified by the precision parameter.