If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

LastLogon TimeStamp Conversion From AD

Okay, I gave up I am trying to pull the LastLogon time from Active Directory and I'm having all sorts of issues with the conversion. I know a simple internet search pulls up dozens of examples and I've tried every single one. If anyone could please tell me where I'm going wrong it would be greatly appreciated...

Try 1:
I see, you are using a SearchResultsCollection, here the property value is already converted to a long (from a LARGEINTERGER).

- This give a "object reference not set to instance of an object" exception. Taken from many of the search results I also made 2 modifications. The original example had a Results.Properties["LastLogon"].value (.value on the end without the [0]) which is not valid. Also the last line stated just Date instead of expDate. This seems to be the most popular example but I'm not sure why I cant get it to work.

- This also originally had Results.Properties["LastLogon"].value. Why does it say for me that this is not valid? Using the above gives an exception "unable to case object of type system.int64 to type activeds.iadslargeinteger" There are also a few others that are similar to this all result in this exception.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.