Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Notepad++, how can I insert the current date and time?

On Windows Notepad.exe, I simply press F5 and it inserts the date and time like this:

11:05 AM 1/14/2015

Can I add similarly simple functionality to Notepad++?

like image 584
Ben Nieting Avatar asked Jan 14 '15 19:01

Ben Nieting


People also ask

How do I insert date and time in a text file?

TXT . You can use >> to append to the file and keep previous timestamps. Please mention >> operator for appending time to the file. timestamps are normally used relative to other timestamps.

How do I paste current date and time?

Click Insert, and then click either Date, Time, or Date & Time. To insert the current date and time, press Alt+Shift+F. To insert only the date, press Alt+Shift+D. To insert only the time, press Alt+Shift+T.

How do I change the date format in Notepad?

Used Notepad++ to change mm/dd/yyyy to yyyy/mm/dd in several lines of a text file. Script was saved as a macro for next file. Show activity on this post. "(\d{4})-(\d{1,2})-(\d{1,2})T([0-2]\d):([0-5]\d):([0-5]\d)(?:.


1 Answers

If your Notepad++ shipped with TextFX, you can find this in TextFX > TextFX Insert > Date & Time - short format, which will insert a string in the exact same format. If you don't see a TextFX menu, install it via the plugin manager and it will appear.

You can then bind it to a keyboard shortcut in Settings > Shortcut Mapper... > Plugin Commands. Look for I:Date & Time - short format in the mappings.

like image 162
BoltClock Avatar answered Sep 22 '22 09:09

BoltClock