- Aug
- 47
- 2
I am trying to use the @DATEFMT function to simply print Saturday, December 25, 2021. Please see the problems below.
I get similar errors for all the other codes in the @DATEFMT documentation that I tried. It seems very weird that %%A works (although it returns the wrong day of the week), but not %%B or %%C. Is this a bug? Or am I misunderstanding how to use @DATEFMT.
Thank you,
Jesse Heines
Code:
D:\Work\ > ver
TCC 28.02.18 x64 Windows 10 [Version 10.0.19042.1415]
D:\Work\ > date
Sat 25/12/2021 11:28:16
New date (mm-dd-[yy]yy):
D:\Work\ > echo %@datefmt[%@date[%_date],%%A]
Sunday
D:\Work\ > echo %@datefmt[%@date[%_date],%%B]
TCC: (Sys) The parameter is incorrect.
"%@datefmt[15334,%B]"
D:\Work\ > echo %@datefmt[%@date[%_date],%%C]
TCC: (Sys) The parameter is incorrect.
"%@datefmt[15334,%C]"
I get similar errors for all the other codes in the @DATEFMT documentation that I tried. It seems very weird that %%A works (although it returns the wrong day of the week), but not %%B or %%C. Is this a bug? Or am I misunderstanding how to use @DATEFMT.
Thank you,
Jesse Heines