dotConnect for Oracle Documentation
Devart.Data.Oracle Namespace / OracleTimeStamp Structure / Parse Method / Parse(String,OracleDbType) Method
The System.String to be parsed.
A OracleDbType value. Only OracleDbType.TimeStamp, OracleDbType.TimeStampLTZ, and OracleDbType.TimeStampTZ are allowed.
Example

In This Topic
    Parse(String,OracleDbType) Method
    In This Topic
    Converts the specified System.String representation of a date to its OracleTimeStamp equivalent using specified OracleDbType.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Parse( _
       ByVal value As String, _
       ByVal timeStampType As OracleDbType _
    ) As OracleTimeStamp
    public static OracleTimeStamp Parse( 
       string value,
       OracleDbType timeStampType
    )

    Parameters

    value
    The System.String to be parsed.
    timeStampType
    A OracleDbType value. Only OracleDbType.TimeStamp, OracleDbType.TimeStampLTZ, and OracleDbType.TimeStampTZ are allowed.

    Return Value

    An OracleTimeStamp structure equal to the date represented by the specified System.String.
    Remarks
    This overload of Parse method allows to control how the time stamp is actually stored.
    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.
    OracleTimeStamp newts = OracleTimeStamp.Parse("10/03/05 3:04:05 AM +03:00", OracleDbType.TimeStampTZ);
    Dim newts As OracleTimeStamp = OracleTimeStamp.Parse("10/03/05 3:04:05 AM +03:00", OracleDbType.TimeStampTZ)
    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