how to set date to current date using dos batch file command

前端 未结 4 1938
忘了有多久
忘了有多久 2021-02-11 00:36

how to set date to current date using dos batch file command.

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-11 00:40

    You must take in account that US date is a bit different from europe date. Giving Date displayes:

    >date
    The current date is: 2019-09-12
    Enter the new date: (yy-mm-dd)
    But US date will be something like: mm-dd-yy
    

    Better have a look at: https://www.robvanderwoude.com/batexamples.php

提交回复
热议问题