title: How to format date based on the windows locale using batch?
body: <p>I have a batch file that will compare dates. The problem is we need to test it in different setup, different language means different date format.</p>
  
  <p>e.g Get the modified date of the Test.log file (not knowing what the locale date format is)</p>
  
  <pre><code>for %%i in (c:\Test.log) do (
  call :testprocess %%~ti
  )
  </code></pre>
  
  <p>I want to format the modified date of Test.log in yyyy/MM/dd.</p>
  
  <p>How could I achieve it without knowing what is the format of locale date?</p>