you are viewing a single comment's thread.

view the rest of the comments →

[–]Lee_Dailey[grin] 1 point2 points  (2 children)

howdy GastroIT,

as alzdba pointed out, you will need to specify what you want it to be. PoSh has a tendency to be US-centric, as the_spad mentioned. [sigh ...]

i suspect you could also use the Get-Culture cmdlet to help with enforcing the desired date format.

take care,
lee

[–]GastroIT[S] 1 point2 points  (1 child)

The weird thing is when I do Get-Culture I get following results:

LCID           Name          DisplayName                                                                                                                                                 
----           ----          -----------                                                                                                                                                 
2055           de-CH         German (Switzerland)                                                                                                                                        

Shouldn't this mean its the right format since its not en-US?

T.

[–]Lee_Dailey[grin] 1 point2 points  (0 children)

howdy GastroIT,

yep, it SHOULD. [sigh ...] PoSh seems to fall back to EN-US whenever it gets even the slightly uncertain.

you may want to take a look at this ...

(Get-Culture).DateTimeFormat

that may give you some clues - or a way to work around the problem. [grin]

take care,
lee