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.
The date value is passed in the ODABA Interface::Date format.
Implementation overview
- Get date value from current value
Value :: toDate (  ) - Get date value for passed property
Value :: toDate ( vSimplePath )
Implementation details
-
Get date value from current value
odaba::Date Value  :: toDate (  )
The function returns the date value from current value handle.
to list
-
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.
to list
- vSimplePath
- Simple property path