GrapeCity.Xaml.CalcEngine
ToDateTime Method


GrapeCity.CalcEngine Namespace > CalcConvert Class : ToDateTime Method
The value to be converted.
Convert value to System.DateTime.
Syntax
'Declaration
 
Public Shared Function ToDateTime( _
   ByVal value As Object _
) As Date
'Usage
 
Dim value As Object
Dim value As Date
 
value = CalcConvert.ToDateTime(value)
public static DateTime ToDateTime( 
   object value
)

Parameters

value
The value to be converted.

Return Value

A System.DateTime indicates the converted result.
Exceptions
ExceptionDescription
Can not convert value to System.DateTime
Remarks
Using to convert to convert, if value is not double, first explicitly convert it then to date time. If value is a null reference (Nothing in Visual Basic), pass 0d to . If value is System.String, try parsing with current culture. If value is System.TimeSpan, pass TotalDays of value to
See Also

Reference

CalcConvert Class
CalcConvert Members