PowerShell: Converting Time Stamp from Int64 to DateTime and Vice Versa

Here are some quick conversion methods between time values represented by Integer and DateTime data types:

# Convert from LastlogonTimeStamp to Date Time
# Convert from DateTime to Lastlogon TimeStamp

Leave a Reply

Your email address will not be published. Required fields are marked *