FileTimeToSystemTime in dotnet?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know of a .NET method/function for passing a Filetime (long
integer) [for example, badpasswordtime property in ActiveDirectory] and
passing back a valid system time? The old VB6 method required API calls which
I would prefer to avoid.

thanks
 
lastusernameleft said:
Does anyone know of a .NET method/function for passing a Filetime (long
integer) [for example, badpasswordtime property in ActiveDirectory] and
passing back a valid system time? The old VB6 method required API calls which
I would prefer to avoid.

DateTime.FromFiletime perhaps?
 
a day of googling and microsoft and it was there all along, thanks.

Jon Skeet said:
lastusernameleft said:
Does anyone know of a .NET method/function for passing a Filetime (long
integer) [for example, badpasswordtime property in ActiveDirectory] and
passing back a valid system time? The old VB6 method required API calls which
I would prefer to avoid.

DateTime.FromFiletime perhaps?
 
Back
Top