If I save a notepad as .LOG, it acts as a log file.

My question is when I change an entry in the middle of an existing file - it does not append today's date to that.

Is there any way to get that working ?

  • 2
    It's not automatic, but you can press F5 to manually insert the current time and date. – Bavi_H Nov 30 '10 at 2:59
  • love the username! :-) – studiohack Dec 1 '10 at 5:58

As you already know, when you open a text file that begins with .LOG, Notepad will scroll to the bottom of the file and insert the time and date.

To manually insert the time and date somewhere else, you can use EditTime/Date or press F5.


Try this:

Open Notepad and in a new file type .LOG on the first line.

Save it as a .TXT file or .LOG file or whatever filename you want. The next time you open the file with Notepad, the current date and time will auto-magically be appended to the file.

  • 3
    +1 for teaching me a new trick with Notepad (who would have thought) – Stephen Jennings Nov 30 '10 at 18:59
  • SUPER TRICK!!!!!!!! +1 – kokbira Nov 30 '10 at 20:45
  • 1
    My question already covers this. I wanted to know how to add date-time at any location in the file, and not only at the end – shinynewbike Dec 1 '10 at 5:55

I don't think so. Notepad only adds current date & time at the end of the file, not anywhere else.

If you're looking for an alternative, use a tool like PhraseExpress which substitutes #date with current date and #now with current time

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.