>Hello Everybody
>
>I have to set the accountexpires value in our active directory.
>I get the date, when a person will leave our company(25000 employees) from a SAP System.
>I found this in MSDN:
>The value in the AD "represents the number of 100 nanosecond intervals since January 1, 1601" !!!???
>
>For example:
>If a person leaves our company at 15th of july 2007, i want to calculate the needed value for 15.07.2007 (german date) 23:59:00
>But no idear ???????????
>
>Any help welcomed
>Best regards
>Albert
To get the number of seconds:
?Datetime(2007,7,15)-Datetime(1601,1,1)
To get the number of nanoseconds, multiply by 1.000.000.000 (european style, 1,000,000,000 US style), which gives the formula
?(Datetime(2007,7,15)-Datetime(1601,1,1))*1E9