Spread ASP.NET 16
FarPoint.CalcEngine Assembly / FarPoint.CalcEngine Namespace / CalcConvert Class / ToDateTime Method
Value to convert
Example


In This Topic
    ToDateTime Method
    In This Topic
    Converts the specified value to a DateTime value.
    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
    Value to convert

    Return Value

    DateTime object containing the date-time equivalent to the specified value
    Exceptions
    ExceptionDescription
    Value cannot be converted.
    Example
    This example converts the value to a date-time object.
    See Also