MONTHS_BETWEEN
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Computes the number of months between two date values corresponding to the first and second arguments.
Syntax
|
Notes
- The
first and second arguments to the function must be of type
DATE. - The result is of type
INTEGER. - The result is negative if the date corresponding to the second argument is greater than that corresponding to the first argument.
- If any of the argument expressions evaluates to
NULL, the result isNULL.
Example
This
example illustrates the MONTHS_BETWEEN function:
|
Compatibility
Progress extension