How to get date in BAT file

后端 未结 5 2028
醉酒成梦
醉酒成梦 2020-12-05 04:36

I need to get today date in Window *.bat file. After it I would like to get day, month and year. How can I do this?
I can\'t use PowerShell

5条回答
  •  广开言路
    2020-12-05 05:10

    %date% will give you the date.

    %time% will give you the time.

    The date and time /t commands may give you more detail.

提交回复
热议问题