Welcome to Fireapis
  • Welcome
  • The Basics
    • Basics
    • Environment
      • Creating an Environment
      • Configure Domain
    • Auth
    • Secrets
    • Tables
      • Creating Table
      • Testing Tables
      • Add a New Column
      • Table Properties
      • Endpoints
      • Data
      • Deleting a Column
      • Deleting a Table
    • Webhooks
    • Marketplace
    • Logics
      • Dynamic Data Source Selection
      • Testing Logics
      • Actions
        • External API Request
        • Query Builder
        • Data Transformation
        • Build Object
        • Build Conditions
        • Other Utilities
          • Token Generation
          • Token Decryption
          • Hashing
          • Validate Hash
          • Encrypt
          • Decrypt
        • Date Utilities
          • Find Difference Between Dates
          • Add/Subtract Dates
          • Format Date
          • Apply Timezone to Date
  • Next steps
    • What Next?
Powered by GitBook
On this page

Was this helpful?

  1. The Basics
  2. Logics
  3. Actions
  4. Date Utilities

Add/Subtract Dates

Add or subtract a specific number of units (e.g., years, months, days) to a given date.

PreviousFind Difference Between DatesNextFormat Date

Last updated 2 months ago

Was this helpful?

This action allows you to calculate a new date by performing addition or subtraction on a selected date. Below are the configuration options:

Pick Date

Use the Dynamic Data Source Selector popup to enter or select the date from a previous action or payload. This is the date on which the addition or subtraction will be performed.

Select Operation

Choose whether to Add or Subtract from the selected date.

Enter the Unit

Specify the number of units (e.g., years, months, days, hours, minutes) to perform the operation.

We’ve included screenshots that show how to set up this action and the resulting calculated dates. Below are the details of the sample payload data used:

{
  "start_date": "2024-02-03",
  "end_date": "2025-02-03"
}

Add or Subtract Date Action Configuration
Add or Subtract Date Action Result