---
title: "Calculating Differences Between Dates In Airtable | Airtable Support"
slug: "calculate-the-difference-between-two-dates"
description: "This article covers how to calculate the difference between two dates in Airtable formula fields."
updated: 2025-12-09T21:14:07Z
published: 2025-12-09T21:14:07Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.airtable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Calculating the difference between dates in Airtable

| **Plan availability** | All plan types |
| --- | --- |
| **Permissions** | - **Owner** /**Creator** - Have access to all field configuration options. Additionally everything editors, commenters, or read-only users can do. - **Editor** - Can sort by, filter by, group by, or hide the field within a view. - **Commenter** / **Read-only** - Copy a field's URL |
| **Platform(s)** | Web/Browser, Mac app, and Windows app |

This article covers how to calculate the difference between two dates in Airtable.

## Understanding the DATETIME_DIFF() function with examples

Using the [DATETIME_DIFF() function](/docs/supported-unit-specifiers-for-datetime-diff) in the example below, we will find the difference, in days, between two dates.

> [!CAUTION]
> Note
> 
> - "Payment Received" and "Invoice Billed" are the exact names of our two date fields in the example below. You'll need to apply the examples below to the fields in your particular Airtable instance.
> - If your base contains date strings, in a single line text field for example, then you will need to use the [DATETIME_PARSE() formula function](/docs/using-datetime-parse-formula)to convert the dates from strings into a DateTime format that Airtable can use in any subsequent `DATETIME_DIFF()` formulas.

`DATETIME_DIFF( Payment Received}, {Invoice Billed},'days')`

![360056111474ScreenShot2020-01-27at52513PM.jpg](https://cdn.airtable.document360.io/d0ee2ee4-3f78-47c7-b388-85e40be9fb89/Images/Documentation/360056111474ScreenShot2020-01-27at52513PM.jpg) Another common use of `DATETIME_DIFF()` is to find the difference between a record's date and today's date. You can use `DATETIME_DIFF()` in combination with the `TODAY()` formula to dynamically find the difference from today's date.

`DATETIME_DIFF(TODAY(), {Invoice Billed}, 'days')`

![1500011460402now.png](https://cdn.airtable.document360.io/d0ee2ee4-3f78-47c7-b388-85e40be9fb89/Images/Documentation/1500011460402now.png)

For another example, you can also use `DATETIME_DIFF` to find someone's age when given their birthday.

`DATETIME_DIFF( {Birth Date}, NOW(), 'years') -1`

![4415804352791birthdate.jpg](https://cdn.airtable.document360.io/d0ee2ee4-3f78-47c7-b388-85e40be9fb89/Images/Documentation/4415804352791birthdate.jpg)

## Displaying in decimal format

In another example, if you need to measure the time an employee spends working each day, you could create two date fields to track their clock-in and clock-out times. Using a [DATETIME_DIFF() function](/docs/supported-unit-specifiers-for-datetime-diff) like the following, you can display the total hours worked for the day.

`DATETIME_DIFF({Clock Out},{Clock In},'minutes') &nbsp;/ 60`

![360045331974ScreenShot2019-09-04at60843PM.jpg](https://cdn.airtable.document360.io/d0ee2ee4-3f78-47c7-b388-85e40be9fb89/Images/Documentation/360045331974ScreenShot2019-09-04at60843PM.jpg)

## Displaying in duration format

Since [duration fields](/v1/docs/duration-field-type) store values in seconds, you can tweak the formula to output the DATETIME_DIFF() value in seconds instead of minutes. That way, if we format it as a duration using h:mm, we get the expected result.

`DATETIME_DIFF({Clock Out}, {Clock In}, 'seconds') `

![360046189453ScreenShot2019-09-04at61129PM.jpg](https://cdn.airtable.document360.io/d0ee2ee4-3f78-47c7-b388-85e40be9fb89/Images/Documentation/360046189453ScreenShot2019-09-04at61129PM.jpg)

## FAQs

**How do I calculate the age of an entity, like a business, project, or event, from its starting date to the current date?**

A formula is required to express age in a specific format. The goal is to represent the age in years, with any additional months expressed as decimal fractions of a year.

- Full years are represented as whole numbers.
  - Additional months are expressed as a decimal fraction of a year (e.g., 1 year and 6 months = 1.5).
- Full years are represented as whole numbers.
  - Additional months are expressed as a decimal fraction of a year (e.g., 1 year and 6 months = 1.5).
  - If the age is 1 year and 6 months, the output should be 1.5.
  - If the age is 3 months, the output should be 0.25 (since 3 months is 0.25 of a year).
