For clarity, I was mostly querying as to why the output differed from
my computer settings.

I can see three possibilities:
   o- It's a powershell preference
   o- It's the setting on the DC to which my query goes
   o- It's an internal representation in AD

There are probably other possibilities, but it would be interesting to
know why, as well as useful to know how to correct.

Kurt

On Mon, Mar 2, 2015 at 6:52 PM, Kurt Buff <kurt.b...@gmail.com> wrote:
> Same as the way I have my machine set - 2015-02-27 17:00.
>
> Kurt
>
> On Mon, Mar 2, 2015 at 5:45 PM, Michael B. Smith <mich...@smithcons.com> 
> wrote:
>> What is the desired format?
>>
>> Sent from my Windows Phone
>> ________________________________
>> From: Kurt Buff
>> Sent: ‎3/‎2/‎2015 8:19 PM
>> To: powershell@lists.myitforum.com
>> Subject: Re: [powershell] Date output format
>>
>> That returns the date as is displayed originally: 2/27/2015
>>
>> Kurt
>>
>> On Mon, Mar 2, 2015 at 5:00 PM, Webster <webs...@carlwebster.com> wrote:
>>> Try:
>>>
>>> $user = get-aduser -id userid -properties accountexpirationdate
>>>
>>> (get-date $user. Accountexpirationdate -f d)
>>>
>>> Webster
>>>
>>> -----Original Message-----
>>> From: listsad...@lists.myitforum.com
>>> [mailto:listsad...@lists.myitforum.com] On Behalf Of Kurt Buff
>>> Sent: Monday, March 02, 2015 7:49 PM
>>> To: powershell@lists.myitforum.com
>>> Subject: [powershell] Date output format
>>>
>>> When I run the following:
>>>
>>> get-aduser -id userid -properties accountexpirationdate
>>>
>>> or similar, I see that the date output is in the form of "2/27/2015
>>> 5:00:00 PM".
>>>
>>> This, in spite of the fact that my machine settings are for
>>> "2015-02-27 17:00:00".
>>>
>>> Is that because the DCs aren't set the same as my computer, or is it
>>> internal to AD, or something else? And can I put something in my profile at
>>> least to adjust that?
>>>
>>> Kurt
>>>
>>>
>>> ================================================
>>> Did you know you can also post and find answers on PowerShell in the
>>> forums?
>>> http://www.myitforum.com/forums/default.asp?catApp=1
>>>
>>>
>>> ================================================
>>> Did you know you can also post and find answers on PowerShell in the
>>> forums?
>>> http://www.myitforum.com/forums/default.asp?catApp=1
>>
>>
>> ================================================
>> Did you know you can also post and find answers on PowerShell in the forums?
>> http://www.myitforum.com/forums/default.asp?catApp=1
>>
>>
>> ================================================
>> Did you know you can also post and find answers on PowerShell in the forums?
>> http://www.myitforum.com/forums/default.asp?catApp=1
>
>
> ================================================
> Did you know you can also post and find answers on PowerShell in the forums?
> http://www.myitforum.com/forums/default.asp?catApp=1
>


================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

Reply via email to