How to Create a macOS Shortcut to Instantly Insert Today’s Date Anywhere
Jump to navigation
Jump to search
🪄 Step 1: Open the Shortcuts App
- On your Mac, open the Shortcuts app.
- You can find it via Spotlight Search (press
Command (⌘) + Space→ type “Shortcuts”).
- You can find it via Spotlight Search (press
- Click “+” at the top to create a new shortcut.
- Give your shortcut a name — for example: Insert Date.
🧩 Step 2: Get the Current Date
- In the shortcut editor, click the search bar on the right.
- Search for “Current Date”.
- Drag the “Current Date” action into your shortcut.
- This action gets today’s date and time.
🗓️ Step 3: Format the Date
- In the search bar, look for “Format Date”.
- Drag “Format Date” below “Current Date.”
- Click the little arrow next to “Format Date” to customize it.
- Choose Custom Format.
- Type one of these formats:
yyyy-MM-dd→ → 2025-10-18MMMM d, yyyy→ → October 18, 2025EEE, MMM d, yyyy→ → Sat, Oct 18, 2025
- (You can adjust it however you like.)
This step makes the date look exactly the way you want when it’s inserted.
💬 Step 4: Insert the Date into the Active Text Field
Now we need to “type” the formatted date wherever your cursor is.
Option A — Use AppleScript (Recommended)
- In the search bar, find “Run AppleScript”.
- Drag it below “Format Date.”
- Delete the placeholder script and paste this code:
on run {input, parameters}
tell application "System Events"
keystroke (item 1 of input)
end tell
return input
end run
- Connect the output of “Format Date” to “Run AppleScript.”
💡 What this does:
- It sends the formatted date as keystrokes (like typing) to wherever your cursor is — Notes, Safari, etc.
⚙️ Step 5: Allow Automation Control
Before the shortcut can type for you:
- Open System Settings → Privacy & Security → Accessibility.
- Click the “+” and add Shortcuts.app if it’s not already there.
- Make sure it’s toggled ON (so it can control your Mac to type text).
⌨️ Step 6: Assign a Global Keyboard Shortcut
- Go back to your shortcut.
- Click the “i” (Info) button at the top right of the Shortcut window.
- Turn ON “Use as Quick Action.”
- In “Workflow Receives,” choose “no input” in “any application.”
- Close the info panel.
- Now go to System Settings → Keyboard → Keyboard Shortcuts → Services.
- Scroll until you find your shortcut under the “General” section.
- Assign it a key combination — for example:
Control + Option + DCommand + Shift + D
Now you can press that shortcut anywhere to insert today’s date!
🧠 Step 7: Test Your Shortcut
- Open any app with a text field (like Notes or TextEdit).
- Click where you want the date.
- Press your chosen shortcut key (e.g.,
Control + Option + D). - The current date should appear instantly! 🎉
🧰 Troubleshooting Tips
❌ The Shortcut Doesn’t Type Anything
- Go to System Settings → Privacy & Security → Accessibility and make sure Shortcuts has permission.
- Try running the shortcut directly in the Shortcuts app to see if it produces the date correctly.
- If the date appears in the preview but doesn’t type in the app, try adding a short delay before keystrokes:
- Insert an action “Wait” for 0.2 seconds before “Run AppleScript.”
🕒 Wrong Date Format?
- Double-check your “Format Date” settings — ensure it’s using Custom Format and the right letters (
yyyy,MM,dd, etc.).MM= month (two digits)MMM= month name short (e.g., Oct)MMMM= full month (e.g., October)
⚡ Shortcut Not Triggering with Keys
- Go to System Settings → Keyboard → Keyboard Shortcuts → Services and make sure your key combo isn’t used by another shortcut.
- Restart your Mac if it still doesn’t show up.
🎯 Optional: Insert Date with Time
If you want to include the current time:
- In “Format Date”, use this custom format:
yyyy-MM-dd HH:mm→ → 2025-10-18 14:30 - Everything else stays the same.