ADD_DAYS

Description

ADD_DAYS takes a date, from either an information or in ISO8601 format, and a number of days to add, and returns a date with the given number of days added.

Example: Date

ADD_DAYS('2000-01-01', 18)

This returns 2000-01-18T00:00:00, so 18 days after the 1st January 2000.

Example: Date with time

If you specify not just a date, but a date and time in ISO8601 format, the function includes the time in the calculation.

ADD_DAYS('2000-01-01T09:35:23', 18)

This returns also the 18th January 2000, but at 9:35:23, so 2000-01-18T09:35:23.

Last updated