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
10,634
82
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,223
78
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
399
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