When working with dates with Active Directory, the date is relative to the format specified on the local PC. Does anyone know of a way to force a particular format when using Active Directory independent of the local date format?
The problem I'm having is that the input files this script will run on contains dates that will be in a single format (yyyy/mm/dd) regardless of the computer it runs on and the local date format. (eg: People in North America generally use mm/dd/yyyy, but people in Europe and Asia often use yyyy/mm/dd, and others use dd/mm/yyyy, but these can be freely customized as well, etc).
The actual relevant code is as follows:
The problem I'm having is that the input files this script will run on contains dates that will be in a single format (yyyy/mm/dd) regardless of the computer it runs on and the local date format. (eg: People in North America generally use mm/dd/yyyy, but people in Europe and Asia often use yyyy/mm/dd, and others use dd/mm/yyyy, but these can be freely customized as well, etc).
The actual relevant code is as follows:
Code:
Set objUser = GetObject ("LDAP://...")
objUser.AccountExpirationDate = "2008/11/11"