none
Last day of the last year PowerShell RRS feed

Todas las respuestas

  • You can use:

       $LastDayOfTheYear = New-Object System.DateTime -ArgumentList (Get-Date).Year, 12, 31

    If then you need apply an specific format, you can use:

       $LastDayOfTheYear.ToString('yyyy-MM-dd')

    martes, 28 de febrero de 2017 16:14