SharePoint column formatting

SharePoint date column formatting

Make deadlines obvious: highlight overdue dates in red, show how many days are left, or replace a raw date with friendly text like "Today" or "in 3 days".

A raw SharePoint date — 5/30/2026 — tells you very little at a glance. With column formatting JSON, a date column can react to how close (or past) the date is, so your most urgent items stand out without anyone reading every row.

Before and after

TaskDue date
Submit budgetOverdue
Review draft3 days left
Plan offsitein 12 days
Overdue = red · due soon = yellow · plenty of time = green
Build an overdue-date formatter → Opens the step-by-step guide with the due date countdown already picked.

Three useful date templates

Days remaining

Shows a colored badge with the number of days left, turning red once the date is in the past. Best for due-date and deadline columns. Use this design →

Relative date

Replaces the date with friendly wording — "Today", "Tomorrow", "in 5 days", "2 days ago". Great for activity and follow-up lists. Use this design →

Date stepper

Adds − and + buttons so you can nudge a date forward or back a day right in the list view, without opening the item. Use this design →

How to apply it

The step-by-step guide spells out every click, with pictures. In short:

  1. Pick one of the three date designs above and click its Use this design link. It opens the step-by-step guide with that design already picked.
  2. In step 2, type your date column’s name.
  3. No Date and time column yet? Step 3 shows exactly how to add one.
  4. Click Copy my code.
  5. In your list, click the name at the top of your column, then Column settings, then Format this column. At the bottom of the panel that opens, click Advanced mode.
  6. Click inside the box, press Ctrl+A and then Delete to empty it, and press Ctrl+V to paste. Click Preview, then Save.
Column type matters: these designs need a Date and time column. And the name you type has to be the name your list stores for the column, which can differ from the name you see: here’s how to find your column’s exact name.

Common questions

Why does my empty date show "Overdue"?
An empty date can read as far in the past. The current templates handle this and show "No date set" instead — make sure you're using the latest copy from the generator.
Can people still edit the date?
Yes — the badge templates are click-to-edit, so clicking the cell opens SharePoint's native date picker. The stepper template changes the date directly with its buttons.