Powershell Tip #129: Get midnight time By powershellgu | December 10, 2016 0 Comment Tip: You can get the midnight time : PowerShell # Solution 1 $midnight = Get-Date -Hour 0 -Minute 0 -Second 0 # Solution 2 $midnight = [datetime]::Today 12345 # Solution 1$midnight = Get-Date -Hour 0 -Minute 0 -Second 0 # Solution 2$midnight = [datetime]::Today