Notification

Please be advised that the Customer Support team does not provide troubleshooting services in your current display language. To contact Support team staff, please first switch to English or other supported languages (Spanish, Portuguese or Japanese). 

offset_days

Adds days [days] to a date [date] that can count forwards or backwards on a calendar.

Syntax

offset_days(date(year, month, day), days)

Parameters

  • date can be any of the following:
    • Another function that returns a date.
    • A formula column that returns a date.
  • year: 4 digits.
    For example, 2012
  • month: 2 digits.
    For example, 01 or 12
  • day: 2 digits.
    For example, 01 or 30
  • days:
    • Positive number: Counting forwards
    • Negative number: Counting backwards

Examples

  • offset_days(today(), 7): If today is 24 October 2016, the function returns 31 October 2016.
  • offset_days(date(2016,10,31), -7): Returns 24 October 2016.

Related links

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

true
Search
Clear search
Close search
Main menu
16029289606543425285
true
Search Help Centre
true
true
true
true
true
5055977
false
false