Tag:Date string

  • Several methods of formatting date string under DOS batch processing

    Time:2020-2-26

    Under Linux, a simple sentence: date ‘+% Y% m% d -% H% m% s’ can get the output you want: 20120331-064219But in windows, it takes a lot of work to get this. 1. Format output directly with stringFor example, if the output of time on your machine is like this:c:\>echo %date%-%time% Saturday, March 31, 2012 […]

  • Three methods of formatting date string in DOS batch processing

    Time:2019-11-21

    When it comes to date string output, it’s really annoying. Under Linux, a simple sentence: date ‘+% Y% m% d -% H% m% s’ can get the output you want: 20120331-064219But in windows, it takes a lot of work to get this. 1. Format output directly with string For example, if the output of time […]