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
- Install Actions, and open it once.
- In your shortcut, add the “Is Time In Range” action of Actions.
- 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.
- 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
Free
- Requires
- macOS, iOS, or visionOS 26 or later
- Privacy
- No personal data collected
- Updated
- June 2026
- US App Store rating
- 4.8/5 (703 ratings)
Without an app
The “If” action can compare dates:
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.
