YYYYMMDD displays the date in form YYYY-MM-DD, without CrLf. You can thus PIPE it into files: YYYYMMDD.com >> MyFile.Txt to internally date stamp them. Optional separator can be put on the command line. e.g. if you wanted ISO 8601:1988 international standard yyyy-mm-dd format, on the command line, or in a bat file type: YYYYMMDD - gives 2000-12-31 YYYYMMDD " " gives 2000 12 31 YYYYMMDD . gives 2000.12.31 YYYYMMDD / gives 2000/12/31 You can pipe the result into files: YYYYMMDD.exe >> MyFile.Txt If you wanted a 2-digit year: yy-mm-dd format, on the command line, or in a bat file type: YYMMDD - gives 00-12-31 YYMMDD none gives 001231 YYMMDD space gives 00 12 31 YYMMDD . gives 00.12.31 YYMMDD / gives 00/12/31 YYMMDD gives 00-12-31 You can pipe the result into files: YYMMDD.com >> MyFile.Txt If you wanted 24-hour time: hh:mm format, on the command line, or in a bat file type: HHMM : gives 23:59 HHMM - gives 23-59 gives 2359 HHMM " " gives 23 59 HHMM . gives 23.59 HHMM gives 23:59 You can pipe the result into files: HHMM.com >> MyFile.Txt Often used in conjunction with HHMM to stamp the time. There is no support for other formats: e.g. MM/DD/YYYY or DD/MM/YYYY. The *.com files are for DOS. the *.exe files are for use in Windows. Just place yyyymmdd.exe yymmdd.exe and hhmm.exe somewhere on the path.