Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

DATE format 4

Aug
1,916
68
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:
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
 
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:\>
 
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
 
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
 
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

Back
Top