<code>
Set usr = UserOU.Create("user", "CN=" & strLogonName)With usr
(...)
.AccountExpirationDate = strExDate
.SetInfo
(...)
End With
</code>where strExDate is date string in following format: mm/dd/yyyy.
As You can see I use AccountExpirationDate function to set this date.
This works almost correct - te problem is that date set in directory is different (earlier) then this which is given as function attribute. For example, when I put 7/31/2004 the dat in account attribute is 7/30/2004 (this is just example). Does anyone know this problem and solution ?? :)
I know that I can put value directly in user attribute but I want to avoid counting value to put in this attribute - or maybe someone has code for counting value to put in the account expire date property for given date?
-- Tomasz Onyszko [MVP] [EMAIL PROTECTED] http://www.w2k.pl List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
