C# convert LastLogon value to Days
Posted on 2011-04-22
This issue has been bothering me for quite some time....
I've got a program I'm designing to assist with local profile removal. I've got the actual removal of the profile processing correctly, but I'm having problems getting the calculation of the last logon time for the particular profile.
I found the Win32_NetworkLoginProfile class and a LastLogon value that gives the number of seconds past 00:00:00 January 1, 1970 and I need help converting that to a date so I can then find out how long since that last logon occurred.