dotConnect for DB2 Documentation
Devart.Data.DB2.DB2Types Namespace / DB2Time Structure / Parse Method
The string to parse.
Example

Parse Method (DB2Time)
Converts the specified System.String representation of a date to its DB2Time equivalent.
Syntax
'Declaration
 
Public Shared Function Parse( _
   ByVal szTime As String _
) As DB2Time
 

Parameters

szTime
The string to parse.

Return Value

An DB2Time structure equal to the date represented by the specified System.String.
Remarks
The szTimestamp format must correspond to your local windows settings.
Example
The following example demonstrates usage of Parse method on a machine that has default Windows XP settings. If you have custom settings or use non-English version of the operating system you must change the format of value parameter.
DB2Time newts = DB2Time.Parse("12/25/2005 3:40:15 PM");
Dim newts As DB2Time = DB2Time.Parse("12/25/2005 3:40:15 PM")
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also