Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default date format - UTC

Status
Not open for further replies.

slobad23

IS-IT--Management
Jun 30, 2006
90
GB
Is there any way that you guys know of which would switch the output of the date to a UTC format.

I know you can format it - but I would rather just set that as the default for all powershell scripts in the future.
 
Okay that was probably a little rushed.

I have a piece of software which has a "Stage" that I can use and give it input parameters and output parameters.

Checking the powershell software on my system:
Get-Date returns UTC format date
i.e. 24/02/2011
Get-Date from the "Stage" in the software does not
i.e. 02/24/2011

This may be something "wrong" with the software I am using but if anyone can think of a change I could make to the powershell environment which this "stage" might be using.

Many thanks
 
Perhaps the "stage" is using a different culture setting? Run the following in both a normal PowerShell prompt and the "stage":
Code:
dir Variable:PSCulture
If the value for PSCulture is different between the two, then that's the issue. I believe you can change the culture to a different setting, but who knows what that might do to the software providing the "stage". If the value for PSCulture is the same between the environments then I'm not sure where to point you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top