title: How to calculate time (minutes) between two dates in swift?
body: <p><strong>What do we got</strong>: Date+time (format yyyy-mm-dd hh:mm a)</p>
  
  <p><strong>What are we looking for</strong>: Time difference in minutes</p>
  
  <p><strong>What operation</strong>: NewDate - OldDate</p>
  
  <p>So, I wonder how I could accomplish above goal? I would like to format the date and time to US, regardless from which locale the user has. How can I do that?</p>
  
  <p>Then I will save the 'oldTime' into UserDefaults, and use it for later calculation. The goal is to put the user on delay for 5 minutes and the calculations will be performed to determine if user should be on delay or not.</p>