title: Converting 12 digit ticks to Date
body: <p>I am trying to convert 12 digit c# date time ticks formatted time. (648000000000). With the help of following link I added an extension to my code <a href="https://stackoverflow.com/questions/39829831/how-to-get-18-digit-current-timestamp-in-swift/39830091">How to get 18-digit current timestamp in Swift?</a>.</p>
  
  <pre><code>extension Date {
      init(ticks: UInt64) {
          self.init(timeIntervalSince1970: Double(ticks)/10_000_000 - 62_135_596_800)
      }
  }
  </code></pre>
  
  <blockquote>
    <p>let date = Date(ticks: 648000000000)</p>
  </blockquote>
  
  <p>When I try to see result date it prints following; </p>
  
  <blockquote>
    <p>0001-01-03 18:00:00 +0000</p>
  </blockquote>
  
  <p>However, when I try to convert it hour and minute format output is irrelevant like 19:55</p>
  
  <pre><code>let dateFormatter = DateFormatter()
  dateFormatter.dateFormat = "HH:mm"
  dateFormatter.string(from: date)
  </code></pre>
  
  <p>My first question is how can I format it to get only 18:00. Second is why it is printing 18:00 when I print only date, but 19:55 when I format it?</p>