Converting Ticks into Real Date

by Apr 10, 2014

Internally, Active Directory uses ticks (100 nanosecond units since 1601) to represent date and time. It has been hard in the past to convert these huge numbers into human readable date and time. Here is a much easier way:

[DateTime]::FromFileTime(635312826377934727) 

Likewise, to convert a date to ticks, use this approach:

Twitter This Tip! ReTweet this Tip!