Edit

Share via


Conversions.ConvertDoubleToDateTime method

Convert a double (OA date time format) to a DateTime. Unlike DateTime.FromOADate this doesn't throw exceptions.

Namespace:  Microsoft.Isam.Esent.Interop
Assembly:  Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)

Syntax

'Declaration
Public Shared Function ConvertDoubleToDateTime ( _
    d As Double _
) As DateTime
'Usage
Dim d As Double
Dim returnValue As DateTime

returnValue = Conversions.ConvertDoubleToDateTime(d)
public static DateTime ConvertDoubleToDateTime(
    double d
)

Parameters

Return value

Type: System.DateTime
A DateTime.

See also

Reference

Conversions class

Conversions members

Microsoft.Isam.Esent.Interop namespace