Question
Powershell's Get-date: How to get Yesterday at 22:00 in a variable?
For a check i need yesterday's date at 10:00pm in a variable.
I get yesterdays Date and current Time with
$a = (get-date).AddDays(-1)
But how do i manipulate the time to 22.00 and leave the variable still as Date-Object?
45 123789
45