Informatics Consulting > Software > NameDate

NameDate: Rename files with a date and timestamp
Version 6.15



What is NameDate?

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 somefile 31-Oct-2016.ext 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 other features.

NameDate is free software and comes with full source code. No purchase necessary, but donations are welcome!

Version Information

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.



Downloading NameDate

  1. Download and store it into a temporary directory, e.g. C:\TEMP
    DownloadNameDate Download Germany (Germany)
    DownloadNameDate Download Switzerland (Switzerland)
    Version 6.15
    08. December 2016
    66 KB Freeware
    US$ 0.00

  2. ZIP archives can be opened with the Windows Explorer, no additional software is required. Double-click on the to view the archive contents. These can be copied to any folder on your machine.



No Registration

NameDate is free software, distributed under GNU General Public License, Version 3.

NameDate Version 6.15 (Rename files with a date and timestamp)
Copyright © 1999, 2002-2007, 2009, 2014, 2015, 2016, James Greene

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.

You should have received a copy of the GNU General Public License along with this program. If not, see

If you would like to make a donation to the author as a token of your appreciation for this fine piece of free software, please contact

Screen Shots


Screen Shots


For more information about the full range of features, Download NameDate and try it out. If you like what you see, please ! Thank you!



Documentation / Using NameDate

Usage: NAMEDATE [switches] filename.ext

where switches may be

Name Formatting switches
/Z:"format"specify the date/time format (see below)
/ZZ:"format"specify the format of the whole name (see below)
/E:"language"specify the language for /Z conversions (ANSI format) (see below)
/EE:"language"specify the language for /Z conversions (ASCII format) (see below)
/Uconvert any spaces in the filename to underscores 
/Lfile extension begins with the LAST period in the name
Date/Time switches
/Muse the file's modification date/time instead of the current time
/OY|M|W|D[+|-]nadd or subtract n Years/Months/Weeks/Days to/from the date
/AH|M|S[+|-]nadd or subtract n Hours/Minutes/Seconds to/from the time
/Guse UTC (formerly GMT) instead of the local timezone of the PC.
General program switches
/Ccopy files instead of renaming them
/Drename directories as well as files (don't use together with /C)
/Hrename SYSTEM and HIDDEN files 
/Kforce operations (replace any existing target files)
/KKKill any existing target directories (when used together with /D).
/S:"path"move or copy the file into the directory path
/SM:"path"move files across drives into the directory path. The /SM flag implies the /C option.
/B:numspecify how many files can be renamed in a single directory
/BDdetermine the number of files automatically
/Qquiet operation - no information message will be displayed
/Yanswer 'yes' to all confirmation questions
/P(Pretend) Simulates the rename action (for debugging purposes)
/Vdisplays the NAMEDATE version and license information
/?displays the list of switches
Legacy switches
/Fput the date before the original filename
/Xput the date as an extension to the original filename
/8renames the file to a DOS-compatible 8.3 filename (xxyymmdd.ext)
/Nuses the numeric date form (02-07-2014)
same as /Z:"d-m-Y"
/Ruses the reverse numeric date form (2014-07-02)
same as /Z:"Y-m-d"
/Tadds 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

aAbbreviated weekday name
AFull weekday name
bAbbreviated month name
BFull month name
dDay of month as decimal number (01-31)
HHour in 24-hour format (00-23)
IHour in 12-hour format (01-12)
jDay of year as decimal number (001-366)
mMonth as decimal number (01-12)
MMinute as decimal number (00-59)
pCurrent locale's A.M./P.M. indicator for 12-hour clock
SSecond as decimal number (00-59)
UWeek of year as decimal number, with Sunday as first day of week (00-53)
wWeekday as decimal number (0-6; Sunday is 0)
WWeek of year as decimal number, with Monday as first day of week (00-53)
yYear without century, as decimal number (00-99)
YYear with century, as decimal number
zTime-zone name or abbreviation; no characters if time zone is unknown
ZSame as z
\Accept the following character as text instead of a formatting command
Additional Options when /ZZ is used:
FThe original filename (without the extension)
XThe original file extension (without the leading dot)
CA 4-digit counter
cA 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

Back to the Shareware Overview

This page was last updated on Thursday, 08. December 2016.

Copyright &copr; 2016 James Greene. All rights reserved.
Information in this document is subject to change without notice.
Please send any questions or comments about this page to