Datetime Diff
Returns the difference between two dates (with positive and negative), i.e., date1 minus date2. 【date1】Date 1 【date2】Date 2 【units】is the time unit, i.e., the unit for calculating the difference between date1 and date2. For example, calculating by "days" can also be converted to calculating by "years". Time units include the following symbols, both formats can be used: "Unit Description" → "Abbreviation" Milliseconds: "milliseconds" → "ms" Seconds: "seconds" → "s" Minutes: "minutes" → "m" Hours: "hours" → "h" Days: "days" → "d" Weeks: "weeks" → "w" Months: "months" → "M" Quarters: "quarters" → "Q" Years: "years" → "y" Click the link below to view all time units.
Input formula
Select a field or function
Number
Sum
Average
Max
Min
Round
Round Up
Round Down
Ceiling
Floor
Even
Odd
Int
Abs
Sqrt
Mod
Power
Exp
Log
Value
Text
Concatenate
Find
Search
Mid
Replace
Substitute
Len
Left
Right
Lower
Upper
Rept
T
Trim
Encode URL Component
Logic
If
Switch
True
False
And
Or
Xor
Blank
Error
Is Error
Not
Date
Today
Now
To Now
From Now
Date Add
Datetime Diff
Workday
Workday Diff
Is After
Is Before
Is Same
Datetime Format
Datetime Parse
Datestr
Timestr
Year
Month
Weekday
Weeknum
Day
Hour
Minute
Second
Set Locale
Set Timezone
Created Time
Last Modified Time
Array
Array Compact
Array Unique
Array Join
Array Flatten
Count
CountA
CountIf
CountAll
Object
Record ID
DATETIME DIFF
Returns the difference between two dates (with positive and negative), i.e., date1 minus date2. 【date1】Date 1 【date2】Date 2 【units】is the time unit, i.e., the unit for calculating the difference between date1 and date2. For example, calculating by "days" can also be converted to calculating by "years". Time units include the following symbols, both formats can be used: "Unit Description" → "Abbreviation" Milliseconds: "milliseconds" → "ms" Seconds: "seconds" → "s" Minutes: "minutes" → "m" Hours: "hours" → "h" Days: "days" → "d" Weeks: "weeks" → "w" Months: "months" → "M" Quarters: "quarters" → "Q" Years: "years" → "y" Click the link below to view all time units.
Usage
DATETIME_DIFF(date1, date2, [units])
Example
DATETIME_DIFF( TODAY(), {date of begin}, "days")
=> 15

Recommend Reading
- Boost Your Brand Visibility with LinkedIn Post Automation by Bika.ai
- Data Automation with Bika.ai: Unlocking New Potential for Facebook Post Automation in Manage multiple accounts
- Rotating Duty Reminder(Wecom): Airtable Alternative to Project duty plan
- Bika.ai vs Airtable: To tracking social media trends
- Email Reminder: Airtable Alternative to Tracking ticket status