Date Functions

When you work with date, you may use the functions that process dates.

In these functions, sometimes a format pattern of a date or any number must be defined. Also locale can have an influence to their formatting.

[Note]Note

Remember that numeric and date formats are displayed using system value Locale or Locale specified in the defaultProperties file, unless other Locale is explicitly specified.

For more information on how Locale may be changed in the defaultProperties see Changing Default CloverETL Settings.

Here we provide the list of the functions:

[Note]Note

The following two functions are deprecated. Their return value modifies the argument at the same time.

  • date trunc(date arg);

    The trunc(date) function takes one date argument and returns the date with the same year, month and day, but hour, minute, second and millisecond are set to 0 values.

  • date truncDate(date arg);

    The truncDate(date) function takes one date argument and returns the date with the same hour, minute, second and millisecond, but year, month and day are set to 0 values. The 0 date is 0001-01-01.