About 58,000 results
Open links in new tab
  1. How to format a DateTime in PowerShell - Stack Overflow

    Format Date Time to your Output Needs. If you want to format the date and assign the string to a variable. I have combined both PowerShell and .NET to provide the flexibility.

  2. Setup default date format like yyyy-mm-dd in Powershell?

    Mar 13, 2014 · How can I setup a default date format in powershell like yyyy-mm-dd ? so any date output will be like this format? or How to setup a date format globally in one script ? Is there a …

  3. Creating a DateTime object with a specific UTC DateTime in …

    Get-Date converts the given UTC time to local time and stores it as a datetime object with Kind set to Local. It does store the correct physical point in time, but it is a local time and will be …

  4. Formatting PowerShell Get-Date inside string - Stack Overflow

    Apr 5, 2012 · Spécificator Type Example (with [datetime]::now) d Short date 26/09/2002 D Long date jeudi 26 septembre 2002 t Short Hour 16:49 T Long Hour 16:49:31 f Date and hour jeudi …

  5. powershell - Get-Date formatting/culture - Stack Overflow

    How do I specify what part of my input string is the date and month? If the input is 01/10/2017, this can be read as 1st Oct 2017 and 10th Jan 2017. Both are correct. I want to be explicit that 01 …

  6. How do I get 'date-1' formatted as mm-dd-yyyy using PowerShell?

    I think this is only partially true. Changing the format seems to switch the date to a string object which then has no methods like AddDays to manipulate it. So to make this work, you have to …

  7. Convert a string to datetime in PowerShell - Stack Overflow

    Chris Dents' answer has already covered the OPs' question but seeing as this was the top search on google for PowerShell format string as date I thought I'd give a different string example. If …

  8. Format a datetime in PowerShell to JSON as \/Date …

    I want to get the current date as a string in the following format: \\/Date(1411762618805)\\/ I have been fighting with PowerShell and have tried the following, but it keeps wrapping the object with

  9. Display [datetime] object in 24 hour format - Stack Overflow

    Sep 22, 2018 · I'm trying to display the hour in 24h format, desired output: Saturday, September 22, 2018, 21:30:00 PM It is possible to display 24h format using the Get-Date Cmdlet, e.g.: …

  10. Convert Date variable into particular format in Powershell

    Jun 24, 2016 · Given a DateTime object, how do I get an ISO 8601 date in string format? Hot Network Questions How to establish falsehood of a premise in a bisimulation proof in Rocq?