title: separate day month and year from a date batch file
body: <p>when i do </p>
  
  <pre><code>echo %date%
  </code></pre>
  
  <p>i get output as </p>
  
  <pre><code>pet 28.06.2013
  </code></pre>
  
  <p>other dates</p>
  
  <pre><code>pon -&gt; monday
  tor -&gt; tuesday 
  sre -&gt; wedneday 
  cet -&gt; thursday 
  pet -&gt; friday 
  sob -&gt; saturday 
  ned -&gt; sunday
  </code></pre>
  
  <p>I wrote following batch file to get the day month and time. but its not working. please help/</p>
  
  <pre><code>FOR /F "tokens=1-3 delims=." %%A IN ("%sample%") DO (
      SET day=%%A
      SET month=%%B
      SET year=%%C
  )
  echo %day%
  echo %month%
  echo %year%
  </code></pre>
  
  <p>output</p>
  
  <pre><code>pet 28
  06
  2013
  </code></pre>
  
  <p>I want the output as </p>
  
  <pre><code>28
  06
  2013
  </code></pre>