dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlTimeStamp Structure / Parse Method / Parse(String) Method
The System.String to be parsed.
Example

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

Parameters

value
The System.String to be parsed.

Return Value

a PgSqlTimeStamp structure equal to the date represented by the specified System.String.
Remarks
The value 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.
PgSqlTimeStamp newts = PgSqlTimeStamp.Parse("12/25/2005 3:40:15 PM");
Dim newts As PgSqlTimeStamp = PgSqlTimeStamp.Parse("12/25/2005 3:40:15 PM")
See Also