How to Create Date Stamps in Notepad

Notepad is a very useful little utility in Windows.  Because it's so basic in its operation and found on all versions of Windows, it is ideal for text scraps, log files, etc.  Often when making Notepad records, you'll want to insert the date and time into the body of the text.  Luckily, in Notepad there are a few ways to add the date and time into the body of the document.

How to Manually Insert the Time/Date
  1. Pressing the F5 key.  If you press the F5 key, Notepad will insert the current time and date into the document. 
  2. Time/Date option. If you prefer, you can go to Edit on the menu bar and then select Time/Date to do the same thing.
How to Automatically Insert the Date
  1. Open Notepad (a quick way to do so is by hitting the Windows key and R key simultaneously and then typing notepad in the resulting run box) and on the first line type .LOG (yes, you must type it in CAPS and prepend the period or it won't work).
  2. Then hit enter to create a new line below the line containing .LOG
  3. Save the file. 
  4. Close the file.
  5. Open the file. Note the date/time stamp that is present.
  6. Each time the file is opened and closed, Notepad will add a date/time stamp to the bottom of the file. The date/time stamps just keep appending, rather than overwriting, so this is an ideal way to log file activity. Be sure to keep your content after the .LOG line and before the date/time stamps.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.