datetime default output format This topic contains 7 replies, has 5 voices, and was last updated by selko 5 days, 2 hours ago. Author Posts March 13, 2018 at 11:37 am #95798 selkoParticipant Hi, if i type Get-Date i get the following output (german): Dienstag, 13. März 2018 12:34:47 (Get-Date).GetType() IsPublic IsSerial Name BaseType -------- -------- ---- -------- True True DateTime System.ValueType It is a DateTime object. I would like to change the default output of Get-Date to 13.03.2018 12:34:47 but keep the Type as DateTime (so i cant you ToString()??) Can i do this without changing the regional settings in Windows? Can you suggest how the get to this? Thanks March 13, 2018 at 11:56 am #95799 Simon BParticipant Could you not use Get-Date -Format "ddMMyyyy HH:MM:ss" March 13, 2018 at 12:00 pm #95801 selkoParticipant It is changed to string object then. March 13, 2018 at 12:33 pm #95804 jsParticipant https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_format.ps1xml?view=powershell-6 March 13, 2018 at 1:09 pm #95808 selkoParticipant Thanks is there no other way than creating a psx1ml file? My goal is to have date in this format and to make it sortable in Powershell Universal Dashboard (Out-UDGridData) March 13, 2018 at 7:55 pm #95831 Adam DriscollParticipant You can format the date on the client-side with UD, if that is helpful. I added some documentation to the Gitbook about it: https://adamdriscoll.gitbooks.io/powershell-universal-dashboard/content/grids.html March 14, 2018 at 6:13 am #95865 selkoParticipant Thanks Adam, this worked well. March 13, 2018 at 1:46 pm #95813 Don JonesKeymaster It's determined by your operating system settings. So no, you can't modify it except by making a String. Author Posts You must be logged in to reply to this topic.