Powershell Tip #122: Get the start time and end time of the current day By powershellgu | October 23, 2016 0 Comment Tip: You can get the start time and end time of the current day : PowerShell $beginDay = Get-Date -Hour 0 -Minute 00 -Second 00 $endDay = $beginDay.AddDays(1).AddSeconds(-1) 12 $beginDay = Get-Date -Hour 0 -Minute 00 -Second 00$endDay = $beginDay.AddDays(1).AddSeconds(-1)