title: Take a certain amount of days off the current date and print with certain date format
body: <p>How would I take a certain amount of days (take away one day) off the current date and print with certain date format to the console.</p>
  
  <p>I'm currently using:</p>
  
  <pre><code>print((Calendar.current as NSCalendar).date(byAdding: .day, value: -1, to: Date(), options: [])!)
  </code></pre>
  
  <p>Which prints the date and time as:</p>
  
  <blockquote>
    <p>yyyy-MM-dd HH:MM:SS +0000</p>
  </blockquote>
  
  <p>But I want it to print like:</p>
  
  <blockquote>
    <p>dd-MM-yyyy</p>
  </blockquote>
  
  <p>Is this at all possible?</p>