Skip to Content
Sindre Sorhus
Back to Actions

Updated

How to Check if the Time Is Between Two Times in Shortcuts on iPhone and Mac

By Sindre Sorhus, who makes the Actions app

With Actions

  1. Install Actions, and open it once.
  2. In your shortcut, add the “Is Time In Range” action of Actions.
  3. Set the start and the end of the range, like 22:00 and 06:00. Leave the first field, the time to check, empty to use the time now.
  4. Add an “If” action below it that checks if the result is true, and put the actions for that time in the “If” part.

The action uses only the time of day, not the date, so the same shortcut works each day. When the start is later than the end, like 22:00 to 06:00, the range goes past midnight. The start and the end time are in the range.

Get Actions

Additional actions for the Shortcuts app

Download on the App Store

Free

Requires
macOS, iOS, or visionOS 26 or later
Updated
June 2026
US App Store rating
4.8/5 (703 ratings)

More about Actions

Without an app

The “If” action can compare dates:

  1. Add an “If” action, and choose “Current Date” as the input.
  2. Choose “is between”, and type the two times, like 09:00 and 17:00.
  3. Put the actions for that time in the “If” part.

The times are times of today, so this works when the range is in one day. For a range past midnight, like 22:00 to 06:00, use two conditions with “Add Condition”: “is after” 22:00, and “is before” 06:00. Then choose “Any”, so one of them is enough.

The action of Actions does it in one action.