title: How to convert milliseconds to date string in swift 3
body: <p>I am trying to convert milliseconds to date string in swift 3,i tried by setting date fomatter but i am not getting current date string.</p>
  
  <pre><code>var milliseconds=1477593000000
  
  let date = NSDate(timeIntervalSince1970: TimeInterval(milliseconds))
  let formatter = DateFormatter()
  formatter.dateFormat = "dd-MM-yyyy HH:mm:ss"
  formatter.locale = NSLocale(localeIdentifier: "en_US") as Locale!
  print(formatter.string(from: date as Date))
  
  output:
  
  22-01-48793 01:30:00
  </code></pre>