S
- Steve -
I'm taking the value of the expire date out of an AD account (accountExpires
attribute) and passing it into this function.
static DateTime LargeIntToDateTime(ActiveDs.LargeInteger li)
{
long lTime;
lTime = (long)li.HighPart;
lTime <<= 32;
lTime |= (uint)li.LowPart;
return System.DateTime.FromFileTime(lTime);
}
It worked a month ago, but it seems like on a certain day it started
throwing this exception:
Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.
I'm way out of my element. Could someone hit me with a clue stick.
attribute) and passing it into this function.
static DateTime LargeIntToDateTime(ActiveDs.LargeInteger li)
{
long lTime;
lTime = (long)li.HighPart;
lTime <<= 32;
lTime |= (uint)li.LowPart;
return System.DateTime.FromFileTime(lTime);
}
It worked a month ago, but it seems like on a certain day it started
throwing this exception:
Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.
I'm way out of my element. Could someone hit me with a clue stick.