> ## Content Index
> Fetch the complete content index at: https://airtables.net/llms.txt
> Use this file to discover other available public pages before exploring further.

# Format dates in Airtable with DATETIME_FORMAT
- URL: https://airtables.net/airtable-datetime-format/
- Published: 2026-11-08T13:37:00.000Z
- Updated: 2026-11-23T17:27:16.000Z
- Description: Keep the stored date for calculations and use a separate formula for display text. Choose case-sensitive tokens and an explicit time zone before sending the label to a message or export.
- Author: Emma Hayes
- Tags: Formulas

Use `DATETIME_FORMAT({Due Date}, "YYYY-MM-DD")` to turn an Airtable date into text such as `2026-11-24`. Keep the original Date field for calculations and scheduling. I'd create a separate label field, because a message needs readable text while a reminder or calendar still needs the date it came from.

If the hour or day is wrong, put `SET_TIMEZONE` inside the formula before choosing its output pattern. Changing slashes to hyphens fixes presentation; it doesn't resolve a time-zone mismatch.

## Choose a field display, a text label or a date calculation

Airtable's [DATETIME\_FORMAT function returns a string](https://support.airtable.com/articles/2278160967-formatting-dates-with-datetime-format-in-airtable?ref=airtables.net). It reads the source value without rewriting it. The right choice depends on what the next field or person needs:

| Job                                           | Use                                          | Result                                       |
| --------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
| Change how a date looks in the grid           | The Date field's format settings             | The field remains a date.                    |
| Produce an email, record name or export label | DATETIME\_FORMAT in a separate Formula field | Text in the chosen pattern.                  |
| Add a week or compare deadlines               | Date functions reading the original date     | A date or number, depending on the function. |
| Interpret imported date text                  | DATETIME\_PARSE with the input pattern       | A date-valued formula result.                |

For the grid alone, the [Date format menu offers Local, Friendly, US, European and ISO](https://support.airtable.com/articles/1819632575-date-field-type?ref=airtables.net). Include time adds a 12-hour or 24-hour clock. A formatted text result won't gain date-format controls simply because it looks like a date.

[Formula fields are available on all plan types](https://support.airtable.com/articles/1638647282-the-essentials-of-airtable-formulas?ref=airtables.net), with Owner or Creator permissions needed to add or customize them. Adding this field doesn't create another record or run an automation. An automation that later sends its value uses that workflow's run allowance.

[![Airtable grid shows one date and its YYYY-MM-DD text label](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/crop-airtable-guide-date-label-grid.webp)](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/crop-airtable-guide-date-label-grid.webp?ref=airtables.net)

A displayed date and the formula label can look different while representing the same day. [View full size](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/crop-airtable-guide-date-label-grid.webp?ref=airtables.net).

## Create a label that stays blank when the deadline is empty

In an example Tasks table, each record represents one task. Its editable **Due Date** field stores the deadline; a new **Due label** field will read it. Use the browser version for these steps.

1. Open Tasks and add a field. Name it **Due label** and choose **Formula**.
2. Paste the formula below. Replace `{Due Date}` with your exact source field name; keep braces around names containing spaces.
3. Click **Create field**. When editing an existing formula, use its field menu → **Edit field**, then **Save**.
4. Compare the source date and label on a populated record, an empty deadline and a date near New Year.

```
IF(
  {Due Date} = BLANK(),
  BLANK(),
  DATETIME_FORMAT({Due Date}, "YYYY-MM-DD")
)
```

The [documented date-field blank comparison](https://support.airtable.com/articles/7330071120-airtable-formula-field-functions-reference?ref=airtables.net) prevents an empty deadline from becoming an unwanted label. It doesn't validate malformed imported text or suppress an error in the source formula.

These three date-only sample records show the expected results, with no time-zone conversion:

| Sample task           | Due Date          | Due label: text |
| --------------------- | ----------------- | --------------- |
| Send proposal         | December 31, 2025 | 2025-12-31      |
| Unscheduled follow-up | Empty             | Blank           |
| New Year task         | January 1, 2021   | 2021-01-01      |

The last row matters: `YYYY` means calendar year. A week-year token can legitimately produce 2020 for that January date.

[![Formula editor builds a blank-safe YYYY-MM-DD label from Due Date](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-date-label-formula.webp)](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-date-label-formula.webp?ref=airtables.net)

Keep the source date as a Date field. Use its formatted text in the email label. [View full size](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-date-label-formula.webp?ref=airtables.net).

## Copy the pattern for the output you need

The second argument is a quoted pattern. Replace only that pattern to change the label. The examples below use an English-language output and the stored timestamp `2025-12-31T15:07:00.000Z`, formatted in GMT:

```
DATETIME_FORMAT(
  SET_TIMEZONE({Due Date}, "GMT"),
  "YYYY-MM-DD HH:mm:ss Z"
)
```

| Purpose               | Pattern               | Expected text              |
| --------------------- | --------------------- | -------------------------- |
| Year-first date       | YYYY-MM-DD            | 2025-12-31                 |
| US date               | M/D/YYYY              | 12/31/2025                 |
| UK date               | D/M/YYYY              | 31/12/2025                 |
| Readable date         | D MMMM YYYY           | 31 December 2025           |
| Weekday included      | ddd, MMM D, YYYY      | Wed, Dec 31, 2025          |
| Month key             | YYYY-MM               | 2025-12                    |
| 24-hour time          | HH:mm                 | 15:07                      |
| 12-hour time          | h:mm A                | 3:07 PM                    |
| Timestamp with offset | YYYY-MM-DD HH:mm:ss Z | 2025-12-31 15:07:00 +00:00 |
| Compact numeric label | YYYYMMDDHHmmss        | 20251231150700             |

Use the blank guard from Due label around the expression when deadlines can be empty. These patterns come from Airtable's [supported format specifiers](https://support.airtable.com/articles/2765585148-supported-datetime-format-format-specifiers-in-airtable?ref=airtables.net); they aren't interchangeable with token names from Excel, Python or another date library.

A month key is useful for a report, but it doesn't make a text result an editable date. If the source contains only a month and year, don't invent an actual event day just to use this function. Keep the period as explicit Year and Month fields, or document a first-of-month convention as a period boundary. Formatting an existing full date hides its day; it cannot recover a day that was never recorded.

## Check uppercase and lowercase before changing the data

Token case changes the meaning. For the example timestamp, `MM` returns `12`, while `mm` returns `07`. Using uppercase month tokens inside a time pattern can produce a plausible-looking wrong time.

| Tokens           | Meaning                                            | Watch for                                                 |
| ---------------- | -------------------------------------------------- | --------------------------------------------------------- |
| YYYY / GGGG      | Calendar year / ISO week-year                      | They can differ around New Year.                          |
| M, MM, MMM, MMMM | Month number, padded number, short name, full name | Lowercase m means minute.                                 |
| D, DD, ddd, dddd | Day of month; short and full weekday names         | Day-of-year tokens such as DDD serve a different purpose. |
| HH / h           | 24-hour / 12-hour clock                            | Pair h with A or a for AM/PM.                             |
| mm, ss, SSS      | Padded minutes, seconds, milliseconds              | Formatting extra digits doesn't create source precision.  |
| A / a            | AM/PM / am/pm                                      | Neither is a single-letter a or p token.                  |
| Z / ZZ           | Offset with / without colon                        | For example, -08:00 versus -0800.                         |
| w / W            | Locale week / ISO week                             | Pair an ISO week number with its ISO week-year.           |
| X / x            | Unix seconds / milliseconds                        | DATETIME\_FORMAT still returns a string.                  |

For an ISO week label, keep the year and week on the same system:

```
IF(
  {Due Date} = BLANK(),
  BLANK(),
  DATETIME_FORMAT({Due Date}, "GGGG") &
  "-W" & DATETIME_FORMAT({Due Date}, "WW")
)
```

January 1, 2021 belongs to ISO week 53 of 2020, so its label is `2020-W53`. Use `YYYY-MM-DD` for its ordinary calendar-date label. For timed records, choose the reporting time zone before deriving either the week or its year.

If a compact label needs `3:07p`, Airtable's [one-letter AM/PM recipe uses LEFT](https://support.airtable.com/articles/2278160967-formatting-dates-with-datetime-format-in-airtable?ref=airtables.net): `DATETIME_FORMAT({Due Date}, "h:mm") & LEFT(DATETIME_FORMAT({Due Date}, "a"), 1)`. Apply the same explicit zone to both occurrences when formatting a local appointment.

## Set the intended time zone inside DATETIME\_FORMAT

A date-time value represents an instant; its displayed clock depends on the time zone. The [timezone guide explains GMT storage and local or shared display](https://support.airtable.com/articles/7730575816-timezones-and-locales-in-airtable?ref=airtables.net). A formula label can otherwise differ from the clock shown in the source field.

```
IF(
  {Due Date} = BLANK(),
  BLANK(),
  DATETIME_FORMAT(
    SET_TIMEZONE({Due Date}, "America/Los_Angeles"),
    "YYYY-MM-DD HH:mm Z"
  )
)
```

[SET\_TIMEZONE belongs inside DATETIME\_FORMAT](https://support.airtable.com/articles/5584620426-supported-set-timezone-timezones-in-airtable?ref=airtables.net). This expression returns text and leaves the stored deadline unchanged. It also doesn't change the source field's settings for colleagues.

For the same pattern and Los Angeles zone, these example instants produce different seasonal offsets:

| Stored UTC instant   | Expected Los Angeles label |
| -------------------- | -------------------------- |
| 2026-01-15T00:30:00Z | 2026-01-14 16:30 -08:00    |
| 2026-07-15T00:30:00Z | 2026-07-14 17:30 -07:00    |

Both labels fall on the previous local day. That is a conversion of the same instant, not a reason to move the deadline. A fixed subtraction of eight hours would fail for the summer example; use the supported region identifier so daylight saving is handled with the zone.

If everyone should read one shared clock in the original Date field, enable **Include time → Use the same time zone for all collaborators** and select the zone. Each date field has its own setting. I'd use a separate formula for a recipient-specific label, so changing an email's presentation doesn't alter the team's field display.

A date-only deadline is a different kind of fact. Keep it date-only when its meaning is “due on November 24”; don't introduce a local appointment conversion merely to print that date.

[![UTC and Los Angeles labels represent the same instant on different dates](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-date-zone-colon.webp)](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-date-zone-colon.webp?ref=airtables.net)

Use a time zone inside DATETIME\_FORMAT. The formatted date can change even though the underlying instant stays the same. [View full size](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-date-zone-colon.webp?ref=airtables.net).

## Choose language separately from the clock

[SET\_LOCALE controls locale](https://support.airtable.com/articles/9171179624-supported-set-locale-modifiers-in-airtable?ref=airtables.net), including month and weekday names and localized preset patterns. It doesn't choose a time zone. For a populated date-only field, this gives a French date label:

```
DATETIME_FORMAT(
  SET_LOCALE({Due Date}, "fr"),
  "D MMMM YYYY"
)
```

December 31, 2025 becomes `31 décembre 2025`. Add the same blank guard if necessary. For a timed label, use the intended zone as well as the locale; neither choice should be inferred from the language of the email.

Presets such as `L`, `LL` and `LLLL` provide localized date or date-time layouts. When a receiving system requires a fixed order and separators, use an explicit pattern instead of a locale-dependent preset.

## Use the text in messages, names and uploads

For a message, select **Due label** as the dynamic value. Selecting Due Date itself sends the original date representation: [automations and API responses use UTC ISO 8601](https://support.airtable.com/articles/1819632575-date-field-type?ref=airtables.net), regardless of the grid's display choice. A date-only value appears as `2026-11-24`; a date-time includes its time and UTC marker.

To build a message label with a meaningful blank fallback:

```
IF(
  {Due Date} = BLANK(),
  "No due date",
  "Due: " & DATETIME_FORMAT({Due Date}, "YYYY-MM-DD")
)
```

The ampersand joins text. The [text-joining guide](https://airtables.net/airtable-concatenate-text/) covers labels with several optional fields. A record-name formula can use the same approach, but a formatted date alone isn't a unique identifier: two tasks can share one deadline. Keep an existing stable ID or add an Autonumber field alongside the date. Before converting an existing primary field, duplicate the table or download a backup and check linked-record and integration dependencies.

For an upload that needs a comma and lowercase am/pm, this pattern includes both:

```
DATETIME_FORMAT(
  SET_TIMEZONE({Due Date}, "America/Los_Angeles"),
  "YYYY-MM-DD, h:mma"
)
```

The winter example above produces `2026-01-14, 4:30pm`. Keep lowercase `mm` for minutes. If the destination expects a 24-hour clock, use `HH:mm` and follow its specification for whether an AM/PM marker belongs there.

Include the label column when [exporting the view to CSV](https://airtables.net/export-airtable-to-csv/). Inspect the value after the receiving application parses the file: a comma inside one field must remain part of that field. Follow the destination's import specification for date order, seconds, zone and field mapping; a human-friendly label isn't automatically its accepted timestamp format.

## Parse incoming text and calculate before formatting

DATETIME\_FORMAT controls output. [DATETIME\_PARSE interprets input text as a date](https://support.airtable.com/articles/2096628753-using-the-datetime-parse-formula-in-airtable?ref=airtables.net). If an imported text field contains `24/11/2026`, use its day-first input pattern:

```
IF(
  {Imported date text} = BLANK(),
  BLANK(),
  DATETIME_PARSE({Imported date text}, "D/M/YYYY")
)
```

That result is date-valued. A value such as `04/05/2026` is ambiguous without knowing the input convention, so establish that convention before interpreting it. Don't round-trip an existing date through a shortened label to do calculations: dropping the time or offset can lose information.

For a reminder one week before a populated deadline, do the arithmetic first, then format the label:

```
DATETIME_FORMAT(
  DATEADD({Due Date}, -1, "weeks"),
  "YYYY-MM-DD"
)
```

Add the blank guard for optional deadlines. Keep the intermediate [DATEADD result as a date](https://airtables.net/airtable-dateadd/) when a date-based reminder needs it. Use the original date fields with [DATETIME\_DIFF for elapsed time](https://airtables.net/airtable-datetime-diff/), and an editable Date field for [calendar scheduling](https://airtables.net/airtable-calendar-view/).

## Diagnose the result in its destination

| Symptom                                   | Check                                                                                                                                    |
| ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Month appears where minutes should be     | Use lowercase mm in the time. Check h/HH and its AM/PM marker too.                                                                       |
| Hour or day differs from the source field | Compare the stored instant, source display zone and SET\_TIMEZONE identifier. Don't change the source date merely to make a label match. |
| January has last year's number            | Use YYYY for calendar dates; pair GGGG with WW only for an ISO week label.                                                               |
| Date-format controls aren't offered       | The formula may return text. Keep the original date, or use DATETIME\_PARSE for genuine incoming text.                                   |
| Blank records or #ERROR! reach a message  | Check the source type and blank guard, then inspect the source formula or input text. A blank test doesn't repair an invalid value.      |
| The grid is correct but the email isn't   | Select the label field as the message's dynamic value, then check the action's actual output.                                            |

If the input uses `NOW()` or `TODAY()`, remember that it isn't a continuously ticking clock. Airtable refreshes these functions when the base loads or the formula recalculates, and periodically while the base is open. In a closed base, the [function reference describes an approximately hourly refresh](https://support.airtable.com/articles/7330071120-airtable-formula-field-functions-reference?ref=airtables.net) when time-dependent automation or sync depends on it. Use Created time or Last modified time when the fact you need is when a record was created or changed.

Check Due label against the three sample dates, then compare a winter and summer appointment if your workflow includes times. Finally inspect the actual message or imported file: the date order, empty-value behavior and intended zone should match the label, while Due Date still holds the original deadline.