简体   繁体   English

Windows命令行回显日期命令

[英]Windows Command line echo date command

This might be a basic question but I am having a hard time to find a solution. 这可能是一个基本问题,但我很难找到解决方案。 We have an user in Asia for whom echo %date% returns 08/20/2018 Mon 我们在亚洲有一个用户,其回声%date%返回的用户2018年8月20日

And same command returns Mon 08/20/2018 in US. 同样的命令在美国返回2018年8月20日星期一。 I would like to fetch date in both scenarios in a batch file. 我想在两种情况下以批处理文件获取日期。 How would I know if result of date command returns date first or second ( after day information)? 我怎么知道date命令的结果是返回第一个日期还是第二个日期(日期信息之后)?

He will simply need to change region settings to US. 他只需要将区域设置更改为美国即可。 It's the time format. 这是时间格式。

Go to region and language settings and change country or region to United States. 转到地区和语言设置,然后将国家或地区更改为美国。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM