Airtables

Format dates in Airtable with DATETIME_FORMAT

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.

A metal date-stamp mechanism with blank bands rests beside an unprinted label strip and a small blank label.

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. It reads the source value without rewriting it. The right choice depends on what the next field or person needs:

JobUseResult
Change how a date looks in the gridThe Date field's format settingsThe field remains a date.
Produce an email, record name or export labelDATETIME_FORMAT in a separate Formula fieldText in the chosen pattern.
Add a week or compare deadlinesDate functions reading the original dateA date or number, depending on the function.
Interpret imported date textDATETIME_PARSE with the input patternA date-valued formula result.

For the grid alone, the Date format menu offers Local, Friendly, US, European and ISO. 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, 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
A displayed date and the formula label can look different while representing the same day. View full size.

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 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 taskDue DateDue label: text
Send proposalDecember 31, 20252025-12-31
Unscheduled follow-upEmptyBlank
New Year taskJanuary 1, 20212021-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
Keep the source date as a Date field. Use its formatted text in the email label. View full size.

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"
)
PurposePatternExpected text
Year-first dateYYYY-MM-DD2025-12-31
US dateM/D/YYYY12/31/2025
UK dateD/M/YYYY31/12/2025
Readable dateD MMMM YYYY31 December 2025
Weekday includedddd, MMM D, YYYYWed, Dec 31, 2025
Month keyYYYY-MM2025-12
24-hour timeHH:mm15:07
12-hour timeh:mm A3:07 PM
Timestamp with offsetYYYY-MM-DD HH:mm:ss Z2025-12-31 15:07:00 +00:00
Compact numeric labelYYYYMMDDHHmmss20251231150700

Use the blank guard from Due label around the expression when deadlines can be empty. These patterns come from Airtable's supported format specifiers; 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.

TokensMeaningWatch for
YYYY / GGGGCalendar year / ISO week-yearThey can differ around New Year.
M, MM, MMM, MMMMMonth number, padded number, short name, full nameLowercase m means minute.
D, DD, ddd, ddddDay of month; short and full weekday namesDay-of-year tokens such as DDD serve a different purpose.
HH / h24-hour / 12-hour clockPair h with A or a for AM/PM.
mm, ss, SSSPadded minutes, seconds, millisecondsFormatting extra digits doesn't create source precision.
A / aAM/PM / am/pmNeither is a single-letter a or p token.
Z / ZZOffset with / without colonFor example, -08:00 versus -0800.
w / WLocale week / ISO weekPair an ISO week number with its ISO week-year.
X / xUnix seconds / millisecondsDATETIME_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: 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. 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. 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 instantExpected Los Angeles label
2026-01-15T00:30:00Z2026-01-14 16:30 -08:00
2026-07-15T00:30:00Z2026-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
Use a time zone inside DATETIME_FORMAT. The formatted date can change even though the underlying instant stays the same. View full size.

Choose language separately from the clock

SET_LOCALE controls locale, 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, 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 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. 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. 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 when a date-based reminder needs it. Use the original date fields with DATETIME_DIFF for elapsed time, and an editable Date field for calendar scheduling.

Diagnose the result in its destination

SymptomCheck
Month appears where minutes should beUse lowercase mm in the time. Check h/HH and its AM/PM marker too.
Hour or day differs from the source fieldCompare 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 numberUse YYYY for calendar dates; pair GGGG with WW only for an ISO week label.
Date-format controls aren't offeredThe formula may return text. Keep the original date, or use DATETIME_PARSE for genuine incoming text.
Blank records or #ERROR! reach a messageCheck 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'tSelect 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 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.