title: Space instead of leading 0 Date Java
body: <pre><code>    SimpleDateFormat sdf = new SimpleDateFormat("MMM dd HH:mm:ss"); 
      System.out.println(sdf.format(new Date()));
      SimpleDateFormat sdff = new SimpleDateFormat("MMM d HH:mm:ss"); 
      System.out.println(sdff.format(new Date()));
  </code></pre>
  
  <p>Output is:</p>
  
  <pre><code>    Aug 04 10:58:55
      Aug 4 10:58:55
  </code></pre>
  
  <p>I want output to be:</p>
  
  <pre><code>    Aug 04 10:58:55
      Aug  4 10:58:55
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>But if day has two numbers I need it to have one space: </p>
  
  <pre><code>    Aug 14 10:58:55
      Aug  4 10:58:55
  </code></pre>