Cohesive
  • 👋 Welcome!
  • ✨Getting Started
  • Reference
    • API Documentation
      • POST: upload
      • POST: upload_async
      • Guide: Having a custom response schema
        • Template: Metrics Data
        • Template: Order Data
      • Guide: Tabular Data
    • Workflow Documentation
      • Overview
      • Templates
        • Lists
        • Math Expressions
        • Date Expressions
      • Integrations
        • ERP Integrations
        • CRM Integrations
        • Communication Integrations
    • Security Policy
Powered by GitBook
On this page
  1. Reference
  2. Workflow Documentation
  3. Templates

Date Expressions

Cohesive supports simple calculations involving dates. You can adjust dates (presented in any common ISO 8601 format, likeYYYY-MM-DD hh:mm:ss a orYYYY/MM/DD) by days, weeks, months, or years.

Example 1: Description to add 5 days to the orderDate field

ADD_DAYS(orderDate, 5)

Example 2: Description to add 5 weeks to the orderDate field

ADD_WEEKS(orderDate, 5)

Example 3: Description to subtract a month from the orderDate field

ADD_MONTHS(orderDate, -1)

Example 4: Description to subtract a year from the orderDate field

ADD_YEARS(orderDate, -1)
PreviousMath ExpressionsNextIntegrations

Last updated 1 year ago