A Date Stamp

with AutoHotkey

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

by Denis Lamarre

Description

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 into any application (with the same hotkey):

Steps

1

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".

2

Code installation

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

001:
SendInput %A_YYYY% %A_MMM% %A_DD%
Return

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:

002:
SendInput %A_Hour%:%A_Min%:%A_Sec%
Return