title: Time stamp from string issue?
body: <p>I have two string , date and time . date string has a date in format "MM-dd-yyyy" and time in format "hh:mm a" , I want to create a 10 digit timestamp from the same . I did the following but I am getting issue with this. Any help is appreciated.</p>
  
  <pre><code>let idate = (userInstance.userData?.Date!)! + "T" + (userInstance.userData?.Time!)!  + "+0000"
  let dateFormatter = DateFormatter()
  dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZ"
  dateFormatter.locale = Locale(identifier: "en_US_POSIX")
  let date = dateFormatter.date(from: idate)!
  print(date)
  
  let timestamp = Int(date.timeIntervalSince1970)
  print(timestamp)
  </code></pre>