NameDate is a 32-bit command line utility for Windows XP/7/8/10.
NameDate will change the name of a given file to include the date. For
example, a file name somefile.ext will be renamed to
when namedate somefile.ext is run.
NameDate offers a whole range of options to configure how the resulting
file name should be formatted, define where the file should be located
(you can move the files while renaming them), add a counter or several
NameDate is free software and comes with full source code. No purchase necessary,
but donations are welcome!
New in version 6.15 (8. Dec 2016)
Added the /OW[n] option to add/subtract [n] WEEKS from the date.
Added the /G option to use UTC instead of the local timezone on the PC.
Revised the code that calculates the /A... and /O... time/date offsets to eliminate some errors seen with timezones calculations.
Compiled with gcc 5.3.0 and tested on Windows 10 (64 bit).
For more details, please see the version information provided with the application.
ZIP archives can be opened with the Windows Explorer, no additional software is required. Double-click on the namedate6-15.zip
to view the archive contents. These can be copied to any folder on your machine.
This program is free software; you can redistribute it and/or modify it under the terms of the
GNU General Public License
as published by the Free Software Foundation; either version 3 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
specify the language for /Z conversions (ANSI format) (see below)
specify the language for /Z conversions (ASCII format) (see below)
convert any spaces in the filename to underscores
file extension begins with the LAST period in the name
use the file's modification date/time instead of the current time
add or subtract nYears/Months/Weeks/Days to/from the date
add or subtract nHours/Minutes/Seconds to/from the time
use UTC (formerly GMT) instead of the local timezone of the PC.
General program switches
copy files instead of renaming them
rename directories as well as files (don't use together with /C)
rename SYSTEM and HIDDEN files
force operations (replace any existing target files)
Kill any existing target directories (when used together with /D).
move or copy the file into the directory path
move files across drives into the directory path. The /SM flag implies the /C option.
specify how many files can be renamed in a single directory
determine the number of files automatically
quiet operation - no information message will be displayed
answer 'yes' to all confirmation questions
(Pretend) Simulates the rename action (for debugging purposes)
displays the NAMEDATE version and license information
displays the list of switches
put the date before the original filename
put the date as an extension to the original filename
renames the file to a DOS-compatible 8.3 filename (xxyymmdd.ext)
uses the numeric date form (02-07-2014) same as /Z:"d-m-Y"
uses the reverse numeric date form (2014-07-02) same as /Z:"Y-m-d"
adds the time the date (2014-07-02-17-27) same as adding "-H-M" to the /Z format string
and where filename.ext
is the name of an existing file. The filename.ext may contain a drive letter, a directory name and wildcards, so it's possible to rename all of the files in a given directory.
"format" characters used by the /Z and /ZZ options
Abbreviated weekday name
Full weekday name
Abbreviated month name
Full month name
Day of month as decimal number (01-31)
Hour in 24-hour format (00-23)
Hour in 12-hour format (01-12)
Day of year as decimal number (001-366)
Month as decimal number (01-12)
Minute as decimal number (00-59)
Current locale's A.M./P.M. indicator for 12-hour clock
Second as decimal number (00-59)
Week of year as decimal number, with Sunday as first day of week (00-53)
Weekday as decimal number (0-6; Sunday is 0)
Week of year as decimal number, with Monday as first day of week (00-53)
Year without century, as decimal number (00-99)
Year with century, as decimal number
Time-zone name or abbreviation; no characters if time zone is unknown
Same as z
Accept the following character as text instead of a formatting command
Additional Options when /ZZ is used:
The original filename (without the extension)
The original file extension (without the leading dot)
A 4-digit counter
A 2-digit counter
"language" options used by the /E and /EE options
/E specifies the language to use when using /Z or /ZZ with the a, A, b, and B keys.
/E specifies that the conversion will use ANSI characters (Windows character set),
while /EE specifies that the conversion should use ASCII (DOS) characters. See the
examples below for more clarity. For a complete list of languages, please see
MSDN Language Reference