DB2 Date Function Support
TDV supports the date functions listed in the table below for DB2.
|
Function |
Notes |
|
ADD_DAYS |
Supported only for version 11. |
|
ADD_MONTHS |
Result differs between pushed and not pushed. When pushed, if expression is the last day of month or if the resulting month has fewer days than the day component of the expression, the result is the last day of the resulting month. When not pushed, the result has the same day component as the expression. |
|
CURRENT_DATE |
|
|
CURRENT_TIME |
|
|
CURRENT_TIMESTAMP |
|
|
DATE_ADD |
Supported only for version 11. |
|
DATE_PART |
Supported only for version 11. |
|
DATE_TRUNC |
Supported only for version 11. |
|
DAY |
|
|
DAYOFMONTH |
Supported only for version 11. |
|
DAYS_BETWEEN |
Supported only for version 11. |
|
MONTH |
|
|
NOW |
Supported only for version 11. |
|
YEAR |
Version >8, or DB2 XML Extender enabled. |