Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

aduser.whenchanged date/time format different

$
0
0

Hi

I'm using powershell, part of my script uses aduser.lastchanged and writes the result to a registry string.

When looking in ad attributes the date/time is for example 19-August-2013 12:25:11 GMT Daylight Time

when i look in the registry it has changed to 08/19/2013 11:25

So it looks like its converting from UK to US date format and the time looks like daylight saving is different

Any ideas to get it formatted as UK as it shows in my AD User properties attribute editor?




Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>