YYYYMMDD

YYYYMMDD, YYMMDD and HHMM display the dae and time in BAT files.

YYYYMMDD, YYMMDD and HHMM command line utilities to let you display the current date with 4 or 2-digit years and the 24-hour local time without AM/PM. These command embedded in a BAT file. Often the date and time are piped to a log file. The program run in BAT files or the DOS compatibility command. YYYYMMDD - gives 2000-12-31 YYYYMMDD none gives 20001231 YYYYMMDD space gives 2000 12 31 YYYYMMDD . gives 2000.12.31 YYYYMMDD gives 2000/12/31 You can pipe the result into files: YYYYMMDD.com >> MyFile.Txt For actual DOS, use the *.COM versions. For windows use the *.exe versions. 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 HHMM none gives 2359 HHMM space gives 23 59 HHMM . gives 23.59 HHMM gives 23:59

Changes: rewritten in 32-bit C so will work on Windows 7 both 32-bit and 64-bit as well as any older windows.

Minimum requirements: none

Operating system: MS-DOS,Win2000,Win7 x32,Win7 x64,Win98,WinServer,WinVista,WinVista x64,WinXP

Program URL: http://mindprod.com/products3.html#YYYYMMDD

YYYYMMDD screenshot

...

Special permissions

You may include the YYYYMMDD on any CD compilation.

EULA

This program is for non-military use only. For details on what that licencing restriction means and why I restricted this software that way, see http://mindprod.com/contact/nonmil.html If you incorporate any of my code in your programs, they too must be marked for non-military use only. However it is not your responsibility to enforce that restriction.

Read more