Ember

How to count the days between two dates on iPhone

Use the Shortcuts app: a Date action with the later date, then the Get Time Between Dates action holding the earlier date, with days as the unit. The result is the number of days between them, with the earlier date counted as day 0.

Last reviewed: 20 November 2026.

Build the shortcut

  1. Open the Shortcuts app and start a new shortcut.
  2. Add the Date action and enter the later date, or leave it as the current date. The Date action passes that date to the next action.
  3. Add the Get Time Between Dates action. Set the date inside the action to the earlier date, and set the unit to days.
  4. Add the Show Alert action so the result is shown on screen when the shortcut runs.
  5. Run the shortcut. The number shown is the days between the two dates.

In Shortcuts’ own description, Get Time Between Dates “subtracts the specified date from the date passed into the action”, and it “outputs a negative number if the input date takes place before the specified date”. So if the number comes out negative, the two dates are the wrong way round. These action names and descriptions were checked in the Shortcuts action list of the iOS 26.5 simulator on 20 November 2026; Apple’s Shortcuts User Guide covers building shortcuts in general.

What counts as a day

Two dates one day apart give 1. The start date itself is day 0. If you want to include both the first and the last day, as some people do when counting days in a hospital stay or a trip, add one to the result.

Leap days count like any other day, so the days between 1 March 2027 and 1 March 2028 are 366: the span includes 29 February 2028.

Without a shortcut

For short spans you can count whole weeks on a calendar and add the remaining days. For longer spans, the pages on years in days and days in years and months give worked counts.

What Ember adds

If the date you keep counting from is the day someone died, Ember does this every day without a shortcut. Its widget shows the whole number of days since that day and changes at local midnight. The count uses the iPhone’s calendar in the same way, with the day itself as day 0.

Ember is free to download for iPhone (iOS 17 or later): one person, one photo, the small Home Screen widget and an alert for the next milestone. Ember — Forever is a one-time $9.99 purchase in the United States, not a subscription, and adds every person, up to twenty photos each, the medium and Lock Screen widgets, all four themes and an alert for every milestone.

Questions

Why is my result negative?

Get Time Between Dates outputs a negative number when the date passed into it is earlier than the date set inside the action. Swap the two dates.

Can the shortcut count from today automatically?

Yes. Leave the Date action set to the current date, and the shortcut counts up to the day you run it.

Sources

Related guides

More: Counting days: how long is it, exactly? · All guides