FileTime2DateTime(StackOverflow)
public static DateTime FileTime2Date(System.Runtime.InteropServices.ComTypes.FILETIME time)
{
ulong high = (ulong)time.dwHighDateTime;
DateTime dt;
unchecked
{
int low = time.dwLowDateTime;
uint uLow = (uint)low;
high = high << 32;
dt = DateTime.FromFileTime((long)(high | (ulong)uLow));
}
return dt;
//long highBits = time.dwHighDateTime;
//highBits = highBits << 32;
//return DateTime.FromFileTimeUtc(highBits + (long) (uint) time.dwLowDateTime);
//return DateTime.FromFileTimeUtc(highBits | (long) (uint) time.dwLowDateTime);
//return DateTime.FromFileTimeUtc(highBits + ((long)low & 0xFFFFFFFF))
//return DateTime.FromFileTimeUtc(highBits | ((long)low & 0xFFFFFFFF))
}