Cedeq Community Forum
Keyboard Shortcut - Insert Today’s Date Stamp in any Document - Printable Version

+- Cedeq Community Forum (https://forum.cedeq.com)
+-- Forum: General (https://forum.cedeq.com/forumdisplay.php?fid=1)
+--- Forum: Keyboard shortcuts with AutoHotkey code (https://forum.cedeq.com/forumdisplay.php?fid=4)
+--- Thread: Keyboard Shortcut - Insert Today’s Date Stamp in any Document (/showthread.php?tid=33)



Keyboard Shortcut - Insert Today’s Date Stamp in any Document - denilama - 03-26-2018

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 a single hotkey):

Need help creating a keyboard shortcut with ShortKeeper using the following AutoHotkey code? This 5-minute tutorial will help!

30/12/2000
SendInput, %A_DD%/%A_MM%/%A_YYYY%
2000/30/12
SendInput, %A_YYYY%/%A_MM%/%A_DD%
Dec 30, 2000
SendInput, %A_MMM% %A_DD%, %A_YYYY%
December 30, 2000
SendInput, %A_MMMM% %A_DD%, %A_YYYY%

You can learn more about AutoHotkey built-in variables (A_*) here: https://autohotkey.com/docs/Variables.htm#date

To insert a formatted date (and time) stamp corresponding to your locale and language
FormatTime, DateTime
SendInput, %DateTime%