ADDTODATE - Returning the Date After Adding a Time Delta to a Provided Date

  • Last update: May 21, 2025
  • Overview

    Syntax

    ADDTODATE(text/date,unit,delta)

    Returns the date after adding a specified number of years, months, days, hours, minutes, or seconds to the provided date.

    Parameter 1

    text/date

    Represents the date to which the time delta will be added.

    Parameter 2

    Unit

    • "Y/y": in years

    • "D/d": in days

    • "M/m": in months

    • "H/h": in hours

    • "MI/mi": in minutes

    • "S/s": in seconds

    The unit is required to be a constant. Field references are not supported, but direct parameter input is allowed.

    Parameter 3

    Delta


    Type of the Returned Value

    Value

    Notes

    • If any parameter is NULL, the result is NULL.

    Example

    Formula
    ResultNote

    ADDTODATE("2023-01-01", "y", 1)

    2024-01-01


    DAY("2000/1/1")

    1


    DAY("1997-04-20","yyyy-MM-dd")

    20



    附件列表


    主题: Data Development - Scheduled Task
    Previous
    Next
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy