DATE format 4

Code:
c:\users\jlc\utils>ver /r

TCC  23.00.17 x64   Windows 7 [Version 6.1.7601]
TCC Build 17   Windows 7 Build 7601  Service Pack 1

Code:
c:\users\jlc\utils>which date
date is an internal command

Code:
c:\users\jlc\utils>date /t /f0
Wed  Jun 27, 2018

c:\users\jlc\utils>date /t /f1
6/27/18

c:\users\jlc\utils>date /t /f2
Wed  6/27/2018

c:\users\jlc\utils>date /t /f4
6/27/2018

According to the help file, /f4 should be returning the date as 2018-06-27

Joe
 
Last edited:
May 20, 2008
11,380
98
Syracuse, NY, USA
It's OK here. That format is my chosen format in Windows.
Code:
v:\> ver

TCC  23.00.17   Windows 7 [Version 6.1.7601]

v:\> date /t /f4
2018-06-27
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,446
88
Albuquerque, NM
prospero.unm.edu
Code:
C:\>ver /r

TCC  23.00.17   Windows 7 [Version 6.1.7601]
TCC Build 17   Windows 7 Build 7601  Service Pack 1
Registered to COE-DDPTMHQ1

C:\>date /t /f4
 6/27/2018

C:\>
 
May 20, 2008
130
1
CA
the same result as @vefatica and I have it as my default in Windows

ver /r

TCC 23.00.17 x64 Windows 10 [Version 10.0.17134.112]
TCC Build 17 Windows 10 Build 17134

date /t /f4
2018-06-27
 
Dec 17, 2009
39
0
Germany
Does this mean the Windows default format always overrides TCC's date options?

Other formats are still available with the date conversion function:
Code:
C:\4NT\ver
TCC  23.00.17   Windows 7 [Version 6.1.7601]

C:\4NT\date /t /f4
27.06.2018

C:\4NT\echo %@dateconv[%_date,4]
2018-06-27
 
Jan 12, 2014
422
7
Switzerland, SO
Here on Win 10 Pro x64 with Swiss German Region (de_CH):

Code:
[C:\Program Files\JPSoft\TCMD23]ver

TCC  23.00.17 x64   Windows 10 [Version 10.0.17134.112]

[C:\Program Files\JPSoft\TCMD23]date /t /f0
Mit  27 Jun 2018

[C:\Program Files\JPSoft\TCMD23]date /t /f1
27.06.18

[C:\Program Files\JPSoft\TCMD23]date /t /f2
Mit 27.06.2018

[C:\Program Files\JPSoft\TCMD23]date /t /f4
27.06.2018

[C:\Program Files\JPSoft\TCMD23]echo %@dateconv[%_date,0]
27.06.18

[C:\Program Files\JPSoft\TCMD23]echo %@dateconv[%_date,1]
06.27.18

[C:\Program Files\JPSoft\TCMD23]echo %@dateconv[%_date,2]
27.06.18

[C:\Program Files\JPSoft\TCMD23]echo %@dateconv[%_date,4]
2018-06-27
 
Similar threads
Thread starter Title Forum Replies Date
sully9 How to? Unexpected %DATE% CMD variable format (vs DATE /T format) in CMDebug Support 1
T Date format date different from cmd Support 7
fpefpe touch - date format Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
Jesse Heines How to? How to display picture creation date with dir command Support 6
Jesse Heines "Taken" date for JPG and PNG files Support 4
C 7zip with date range .vs. filelist created with dir and daterange Support 0
C How to? Add date/time to custom tpipe based BTM Support 1
vefatica Download center not up to date Support 4
Joe Caverly How to? Date Range in command line for 7zip /= Support 1
N date and cmd compatibility Support 10
rps Functions @year[date] @isowyear[date] help Support 7
S Closing date for V16 suggestions Support 1
JohnQSmith DATE /T Support 13
A How to? Create a date range based upon creation date Support 2
S How to? Command dialogs vs. size/date/etc. exclusion ranges Support 1
M How to? Effectively "combine" date and time ranges... Support 2
CWBillow Make a folder named Date-Time Support 18
vefatica Do UNTIL DATETIME date time Support 6
S Date range question Support 4
Roedy date range documentation error Support 2
Jay Sage Inconsistency in Date Formats Between @DATE and @MAKEDATE Support 3
dcantor More date-related help items for V11 Support 0
dcantor Help text for Date Formats Support 0
dcantor Suggestion for @DATE[] input Support 2
dcantor @DATE help example Support 0
CWBillow Date and Time in names Support 11
vefatica @TIMER's format ... Support 2
T Elapsed time format in prompt changed in TCC 25 Support 10
M Fixed Set "VAR=VAL" format causes problems Support 12
T Problems with the new help format Support 18
samintz WAD @format has issues in v18.00.14 Support 10
mikea How to? Detecting clipboard format Support 7
fishman@panix.com Help file in Kindle format? Support 5
M PDir format question... Support 3
A Is TCC help available in PDF format? Support 2
S TIME /S report format Support 3
S Vince - forum format revisited Support 1
D No "Format" in right-click menu for DVD Support 11
nikbackm Change format of DIR totals Support 3
C OT: Music file format checker Support 0
S Enhancement suggestion: @format and @formatn Support 0

Similar threads