title: Get date from date picker in swift
body: <p>I have created an <code>IBOutlet</code> to a date picker.</p>
  
  <p><code>@IBOutlet weak var logDate: UIDatePicker!</code></p>
  
  <p>I have also set the <code>mode</code> of this date picker to <code>date</code>. </p>
  
  <p>Is there a way for me to extract the date that the user would input into the date picker?</p>
  
  <p>I tried using <code>print(logdate)</code>, however it also gives me the date along with the time. Like this <code>2015-10-30 07:10:03 +0000</code></p>