471,338 Members | 1,036 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

FileTimeToSystemTime in dotnet?

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
Jul 21 '05 #1
4 5777
lastusernameleft <la**************@discussions.microsoft.com> wrote:
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?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #2
lastusernameleft <la**************@discussions.microsoft.com> wrote:
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?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #3
a day of googling and microsoft and it was there all along, thanks.

"Jon Skeet [C# MVP]" wrote:
lastusernameleft <la**************@discussions.microsoft.com> wrote:
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?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Jul 21 '05 #4
a day of googling and microsoft and it was there all along, thanks.

"Jon Skeet [C# MVP]" wrote:
lastusernameleft <la**************@discussions.microsoft.com> wrote:
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?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Jul 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by GChong | last post: by
reply views Thread by Justin Kennedy | last post: by
reply views Thread by Joe Bloggs | last post: by
4 posts views Thread by Peter Hemmingsen | last post: by
4 posts views Thread by Peter Plumber | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.