title: Can I get the correct date mixing Get-Date and [DateTime]::FromFileTime
body: <p>The tip at <a href="http://powershell.com/cs/blogs/tips/archive/2014/04/10/converting-ticks-into-real-date.aspx" rel="nofollow noreferrer">http://powershell.com/cs/blogs/tips/archive/2014/04/10/converting-ticks-into-real-date.aspx</a> 
  shows how to convert ticks to date. The year value comes out wrong when you feed the Get-Date().Tics back to date using [DateTime]::FromFileTime. I figured out the problem with UTC but the year is still incorrect. The post at <a href="https://stackoverflow.com/questions/5300398/powershell-get-date-datetimefromfiletime-returns-different-values">Powershell: get-date &amp; [datetime]::FromFileTime returns different values</a>
  showed the initial problem. It appears that the two calculations are using a different base value which makes the calculation 3600 years off. What is happening here?</p>
  
  <pre><code>PS&gt; [DateTime]::FromFileTime((Get-Date -Date '2014-04-01 18:22:12').Ticks)
  Tuesday, April 01, 3614 11:22:12 AM
  PS&gt; [DateTime]::FromFileTime(((Get-Date -Date '2014-04-01 18:22:12').ToUniversalTime()).Ticks)
  Tuesday, April 01, 3614 6:22:12 PM
  PS&gt; [DateTime]::FromFileTimeUTC(((Get-Date -Date '2014-04-01 18:22:12')).Ticks)
  Tuesday, April 01, 3614 6:22:12 PM
  </code></pre>