A Date Stamp

with AutoHotkey

by Denis Lamarre
last updated October 19, 2018
difficulty.png easy

by Denis Lamarre


When you’re working with a memo, letter, report or any other document where you need to write out the date, instead of typing it out on your keyboard, it’s quicker and easier to use a hotkey. With MS Word and Outlook, it is possible to insert the date using the Alt+Shift+D hotkey. With Excel, a different hotkey (Ctrl+;) is used. Some applications, however, do not have any hotkeys to insert the date. The following scripts will insert the current date stamp in any application (with the same hotkey):



overlay-um-date.gifPrepare your overlay
Choose an unassigned key on the Enterpad where you will assign the date stamp shortcut. Name it something appropriate, like "DATE".


Code installation

Copy and paste the following script in the AutoHotkey script template (Enterpad.ahk) at the location of the key you wish to assign.

SendInput %A_YYYY% %A_MMM% %A_DD%

More Info

The AutoHotkey documentation provides different ways of personalizing the date stamp script: https://autohotkey.com/docs/Variables.htm#date

If you would like to insert a time stamp instead of a date stamp, you can use the following command:

SendInput %A_Hour%:%A_Min%:%A_Sec%