website logo
πŸ”­Overview
πŸ’ΌPlatform Actions
πŸ’œIntegrations
🧰Custom Actions
πŸ› οΈDeveloper's Guide
Navigate through spaces
⌘K
πŸ“•Call API
πŸ“•Generate Document
πŸ“•Call Subprocess
πŸ“•Decisional
βš“Decisional Further Reading
πŸ“•Join
πŸ“•Delay
πŸ“•For Each
πŸ“•Get File Data
πŸ“•Map Process Data
βœ‰οΈSend Email
πŸ“¬Inbound email
πŸ“Database
πŸ“Documents
πŸ“DateTime
πŸ“FTP/sFTP
πŸ“Json
πŸ“XPath
πŸ“Lists
πŸ“Numerical
πŸ“Strings
πŸ“Converters
πŸ“Excel
πŸ“Scripting
πŸ“Utilitary
πŸ“Pdf
πŸ“Beta
Docs powered byΒ archbeeΒ 

Date Difference

8min

This action computes the difference between two DateTime values. [year, quarter, month, week, day]

Document image
ο»Ώ

Inputs & Outputs

  • [ I ] Unit of time: Drop-down to choose which unit of time will be used for measuring the difference.
    • Year
    • Quarter
    • Month
    • Week
    • Day
  • [ I ] First Datetime: DateTime representing the minuend.
  • [ I ] Second Datetime: DateTime representing the subtrahend.
  • [ O ] Difference: Integer equal to the result of First Datetime - Second Datetime in Unit of time.
Document image
ο»Ώ

Example Usage

  • Drag action onto canvas to get familiarized with it.
Document image
ο»Ώ
  • Declare some variables to be used with the action.
Document image
ο»Ώ
  • Assign the newly created variables.
  • Save & Run the process and then Check Instance to see the output.
Document image
ο»Ώ

Use Cases

  • Computing the date difference between two DateTime values.

Tips

  • If Second Datetime is lesser than First Datetime, the Difference will be negative.
  • To compute time difference, consider using Time Difference.

ο»Ώ

Updated 05 Apr 2023
Did this page help you?
Yes
No
PREVIOUS
Format DateTime
NEXT
Time Difference
Docs powered byΒ archbeeΒ 
TABLE OF CONTENTS
Inputs & Outputs
Example Usage
Use Cases
Tips