Old question are about 32 bit. And they are working on 32 bit.

But in 64bit notepad++ there are much less working addons, so the most fastest solution: open simple notepad, press F5 and copy date-time from there.

Is there any option to add date-time without leaving the notepad++?

2 Answers 2


A 64-bit plug-in from Don Ho includes inserting date/time into Notepad++. It also provides an easy mechanism for creating your own Notepad++ plug-ins. Notepad++ PlugInDemo v3.1


This is my set of AutoHotKey macros which insert timestamps in various formats not only in N++ but across the entire OS. You can adjust the format string as you need.

#F2::   ;Date/time with safe characters for use in filenames
    FormatTime, TimeString,, yyyyy-MM-dd_HH-mm-ss
    Send %TimeString%

#F3::   ;Short date
    FormatTime, TimeString,, yyyyy-MM-dd
    Send %TimeString%

#F4::   ;Shortest possible date
    FormatTime, TimeString,, yyMMdd
    Send %TimeString%

#F5::   ;Date/time
    FormatTime, TimeString,, yyyyy-MM-dd HH:mm:ss
    Send %TimeString%

So this way Win+F5 inserts timestamp containing date and time.

You can limit the scope only to Notepad++ by using #IfWinActive directive, just above the macros. I am using this one:

#IfWinActive ahk_class Notepad\+\+

Note: Window title match string used above relies on the following SetTitleMatchMode setting:

SetTitleMatchMode, RegEx               

but if you have different mode, your title used with #IfWinActive directive may vary. See the above links.

  • I think it will be OK working solution. But still I believe there is an option inside the N++.
    – XuMuK
    Dec 20, 2017 at 16:12
  • 2
    @XuMuK – yes I respect that approach. On the other hand, inserting dates is useful across all applications so waiting until someone writes a plugin only for N++ when for much lower cost and time you can provide yourself with better solution, i.e. fully configurable according to your exact needs... I am not sure whether waiting for more limited N++-only plugin makes sense.
    – miroxlav
    Dec 20, 2017 at 16:19
  • thank you @miroxlav, I used this solution , here is a HelloWorld for AutoHotKey that can helps youtube.com/watch?v=HcgQlGeaPHw
    – ktaria
    May 13, 2021 at 6:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.