In a Windows batch file, is it possible to get the text of date in some location independent form to get the location independent date stamp as a string? To make the question clear... In the Czech Windows, the wanted code looks like this:
d:\>date /t
čt 16. 05. 2019
d:\>echo %DATE:~-4%%DATE:~-8,2%%DATE:~-12,2%
20190516
However, in the English Windows the same code returns bad results for obvious reasons:
d:\>date /t
Thu 05/16/2019
d:\>echo %DATE:~-4%%DATE:~-8,2%%DATE:~-12,2%
2019/1u
If the code is tuned for the English Windows, then it does not work in the Czech environment. How it should be implemented?