A very flexible way is to use the Python Script plugin to insert the current date dynamically.

Install the Python Script plugin via the Plugin Manager if you haven't already:
- Go to Plugins > Plugins Admin.
- Find Python Script and install it, then restart Notepad++.


now to sample scripts:
_____________________________________

#Go to Plugins > Python Script > Configuration.
#Select your script (InsertMainHeader.py).


from datetime import datetime

# Get current date in DD.MM.YYYY format
current_date = datetime.now().strftime("%d.%m.%Y")

# Create the header lines
header_lines = [
"###############################################################################",
"#",
"# Customer / VK",
"#",
"# DL",
"#\t",
"# (c) by bla",
"#",
"###############################################################################"
]

# Join the lines into a single string
header_text = "\n".join(header_lines)

# Insert the header at the current cursor position
editor.addText(header_text + "\n")

_____________________________________


#Go to Plugins > Python Script > Configuration.
#Select your script (InsertHeaderDate.py).

from datetime import datetime, timedelta

# Get current datetime
now = datetime.now()

# Round up to the next quarter hour
minute = (now.minute // 15) * 15
if minute == 60:
now = now.replace(minute=0, second=0, microsecond=0) + timedelta(hours=1)
else:
now = now.replace(minute=minute, second=0, microsecond=0)

# Format date and time
date_str = now.strftime("%d.%m.%Y")
time_str = now.strftime("%H:%M")

# Prepare the header lines
header_lines = [
"---------------------------------",
"- {} {}\t\t#".format(date_str, time_str),
"---------------------------------"
]

# Construct the full header
header_text = "\n".join(header_lines)

# Insert at cursor position
editor.addText(header_text + "\n")



_____________________________________

the "user" scripts can be found in this folder:
C:\Users\your-user-name\AppData\Roaming\Notepad++\plugins\config\PythonScript\scripts

computer2know :: thank you for your visit :: have a nice day :: © 2026