ArcFM Responder Mobile Developer Guide
ToDateTime(Object,DateTime) Method






A value to convert
The conversion value for null and DBNull values
DBNull and null aware conversion to DateTime
Syntax
'Declaration
 
Public Overloads Shared Function ToDateTime( _
   ByVal value As System.Object, _
   ByVal nullValue As System.Date _
) As System.Date
'Usage
 
Dim value As System.Object
Dim nullValue As System.Date
Dim value As System.Date
 
value = DbConvert.ToDateTime(value, nullValue)
public static System.DateTime ToDateTime( 
   System.object value,
   System.DateTime nullValue
)
public function ToDateTime( 
    value: System.TObject;
    nullValue: System.DateTime
): System.DateTime; static; 
public static function ToDateTime( 
   value : System.Object,
   nullValue : System.DateTime
) : System.DateTime;
public: static System.DateTime ToDateTime( 
   System.Object* value,
   System.DateTime nullValue
) 
public:
static System.DateTime ToDateTime( 
   System.Object^ value,
   System.DateTime nullValue
) 

Parameters

value
A value to convert
nullValue
The conversion value for null and DBNull values

Return Value

The DateTime equivalent of the input value
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

Reference

DbConvert Class
DbConvert Members
Overload List

Send Feedback