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

Updated: November 24, 2026

- [Actions](https://sindresorhus.com/actions.md): Additional actions for the Shortcuts app. Price: Free. Platforms: macOS, iOS, visionOS. Get it from: [App Store](https://apps.apple.com/app/id1586435171). Requires macOS, iOS, or visionOS 26 or later. Size: 13 MB on Mac, 29 MB on iPhone and iPad. Free older versions for macOS 15, 14, 13, and 12: [download](https://sindresorhus.com/actions#older-versions). US App Store rating: 4.8/5 (703 ratings).

URL: https://sindresorhus.com/guides/shortcuts-check-time-range

Add the “Is Time In Range” action of the free [Actions](https://sindresorhus.com/actions.md) app, set the start and the end time, and check its result in an “If” action. It also works for a range past midnight. [Without an app](https://sindresorhus.com/guides/shortcuts-check-time-range#without-an-app), use the “If” action with “Current Date” and “is between”.

## With Actions

1. Install [Actions](https://sindresorhus.com/actions.md), and open it once.
1. In your shortcut, add the [“Is Time In Range”](https://sindresorhus.com/actions#:~:text=Is%20Time%20In%20Range) action of Actions.
1. 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.
1. 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.

## Without an app

The “If” action can compare dates:

1. Add an “If” action, and choose “Current Date” as the input.
1. Choose “is between”, and type the two times, like 09:00 and 17:00.
1. 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.
