Insert today’s date with Keyboard Maestro

Manually entering today’s date repeatedly can be tedious, but with Keyboard Maestro, you can (semi-)automate this task in just a few keystrokes using the ICUDateTime variable. This allows you to insert the current date in various formats. You can download the macros below and adjust them if needed.

How it works

Keyboard Maestro provides a built-in token called ICUDateTime, which retrieves the current date and formats it according to your preference. You can assign this token to macros that will insert the formatted date wherever your cursor is placed.

How to set it up

  1. Open Keyboard Maestro.
  2. Create a new Macro.
  3. Add an ActionInsert Text by Typing/Pasting.
  4. Enter the desired ICUDateTime token (see examples below).
  5. Assign a hotkey trigger or use a Stream Deck button with the KMLink addon.
  6. Test the macro in any text field.

Example Macros

Below are four simple macros to insert today’s date in different formats:

  1. Text – Set today’s date – dd.MM.yy
    Insert Text: %ICUDateTime%dd.MM.yy%
    Example Output: 12.02.25
  2. Text – Set today’s date – dd.MM.yyyy
    Insert Text: %ICUDateTime%dd.MM.yyyy%
    Example Output: 12.02.2025
  3. Text – Set today’s date – YY-MM-dd
    Insert Text: %ICUDateTime%YY-MM-dd%
    Example Output: 25-02-12
  4. Text – Set today’s date – YYYY-MM-dd
    Insert Text: %ICUDateTime%YYYY-MM-dd%
    Example Output: 2025-02-12

Screenshot of a Keyboard Maestro macro which inserts today's date using the ICUDateTime token.

Customization

The above macros can be easily modified to match your preferred date format. Simply adjust the ICUDateTime pattern within Keyboard Maestro to fit your specific needs. For example:

  • MM/dd/yyyy02/12/2025
  • EEEE, MMMM d, yyyyMonday, February 12, 2025
  • Add time: %ICUDateTimePlus%3%Days%yy-MM-dd% → Adds 3 days to today’s date.
  • Use a day of the week dynamically: %ICUDateTimePlus%0%Tuesdays%EEE, MMM d, yyyy% → Returns today’s date if it’s Tuesday; otherwise, the next Tuesday.
  • %ICUDateTimePlus%1%Wednesdays%EEE, MMM d, yyyy% → Always returns the next Wednesday, even if today is Wednesday.

Enhancing with Stream Deck

With KMLink, you can directly trigger your Keyboard Maestro macros from a Stream Deck button. This allows you to enter today’s date with a single press, making it more convenient for frequent use cases like naming files or logging tasks.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.