How to get standardized date/time stamp of file or dir. in pure batch scripting?
问题 Is there a way in Windows command line to retrieve the date/time stamps (modification, creation, access) of a file or directory in a standardized locale-independent format (for instance, ISO8601)? I found that the output of dir uses system-dependent date/time format, with the seconds missing. The same is true for the ~t modifier of the parameter ( %~t1 ) and for variable expansion ( %~tI ). Also the forfiles variables @fdate and @ftime depend on the system settings (although the latter