itnifl
asked on
Get date in powershell in the format d.M.yyyy hh:mm AM/PM
I am trying to get the date in this format
(get-date).AddMinutes(10). ToString(" d.M.yyyy hh:mm tt")
Where tt should be AM or PM. But I guess tt is wrong to use here.
All help appreciated.
(get-date).AddMinutes(10).
Where tt should be AM or PM. But I guess tt is wrong to use here.
All help appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
David Johnson, CD, MVP:
But not on my system, most likely because I am not using a system with US local settings. I tested Rainer Jeschor solution, and it seems to work by setting these settings manually in the script.
But thank you anyway =)
But not on my system, most likely because I am not using a system with US local settings. I tested Rainer Jeschor solution, and it seems to work by setting these settings manually in the script.
But thank you anyway =)
Open in new window