Table of Contents

Search

  1. Preface
  2. Function reference
  3. Constants
  4. Operators
  5. Dates
  6. Functions
  7. System variables
  8. Datatype reference

Function Reference

Function Reference

Date functions

Date functions

The transformation language provides a group of date functions to round, truncate, or compare dates, extract one part of a date, or perform arithmetic on a date.
You can pass any value with a date datatype to any of the date functions. However, if you want to pass a string to a date function, you must first use the TO_DATE function to convert it to a transformation Date/Time datatype.
The transformation language provides the following date functions:
  • ADD_TO_DATE
  • DATE_COMPARE
  • DATE_DIFF
  • GET_DATE_PART
  • LAST_DAY
  • MAKE_DATE_TIME
  • ROUND
  • SET_DATE_PART
  • SYSTIMESTAMP
  • TRUNC
Several of the date functions include a
format
argument. You must specify one of the transformation language format strings for this argument. Date format strings are not internationalized.
The Date/Time transformation datatype does not support milliseconds. Therefore, if you pass a date with milliseconds,
Data Integration
truncates the millisecond portion of the date.

0 COMMENTS

We’d like to hear from you!