How to insert current date and time into a file using Emacs

datetimeemacstext-editortimestamp

What commands in Emacs can I use to insert into the text buffer of a file the current date and time?

(For example, the equivalent in Notepad is simply pressing F5 which is about the only useful feature for Notepad!)

Best Answer

C-u M-! date