title: Get Date from DateTime control
body: <p>I know this might be a simple question but Im new to Java, my experience is mostly with PHP or C#.</p>
  
  <p>Im working on an eclipse RCP project and using Google Window Builder.</p>
  
  <p>All I need to do is get the date from a <strong>DateTime</strong> control named: <code>dateTimeDOB</code></p>
  
  <p>It must return the date in this format (dd/mm/yyyy) if the day or month value is a single digit it must have a preceding "0".</p>
  
  <p>I think the DateTime control Type is</p>
  
  <pre><code>org.eclipse.swt.widgets.DateTime
  </code></pre>
  
  <p>so for example:  </p>
  
  <pre><code>String strDate = dateTimeDOB.getDate("dd/mm/yyyy");
  </code></pre>
  
  <p>thanks in advance</p>