company logo

Value :: toDate - Convert value to date value

The function returns the value as Date by providing an integer value and interpreting this as number of days starting with 1.1.1870.

When no instance is selected or the value cannot be converted into a positive integer value, the function throws an exception.

Return value:  Date value ( odaba::Date  )

The date value is passed in the ODABA Interface::Date format.

Implementation overview

Implementation details

  1. Get date value from current value
    odaba::Date Value  :: toDate (  )

    The function returns the date value from current value handle.

  2. to list
  3. Get date value for passed property
    odaba::Date Value  :: toDate ( odaba::String &vSimplePath )

    The function returns the date value for the property with the name passed in vSimplePath. When no property exists with the passed name the function throws an exception.

    This is a short form for value(vSimplePath).toDate().

    • vSimplePath - Simple property path

      A simple property path may contain an extent or property name but also a sequence of property names separated by dot. A simple property path must not contain parenthesis or preceding dots.

  4. to list