title: Create Directory using Batch Script with Timestamp
body: <pre><code>@echo off
  For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
  For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a-%%b)
  
  set mydir="%mydate%-%mytime%"
  
  mkdir %mydir%
  </code></pre>
  
  <p>With above batch script, I can create a directory name like <strong>2015-05-14-11-30 AM</strong></p>
  
  <p>Now I need to convert the time into 24 format and remove AM/PM</p>
  
  <p>Expected folder name - <strong>2015-05-14-11-30</strong> </p>
  
  <p>How to do it ?</p>