I need to get today and yesterdays date at midnight in the following format:

`08/05/2018 00:00`

The best I seem to be able to get is this:

```
get-date -Uformat "%D %R" -Hour 0 -Minute 00

```

`08/05/18 00:00`

I fail miserably when trying to get yesterday at midnight.

```
(Get-Date -UFormat "%s" -Hour 0 -Minute 00 -Second 00).AddDays(-1)

```

> 
> Method invocation failed because [System.String] does not contain a method named AddDays.
>  At line:1 char:1
>  + (Get-Date -UFormat "%s" -Hour 0 -Minute 00 -Second 00).AddDays(-1)
>  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  + CategoryInfo : InvalidOperation: (:) [], RuntimeException
>  + FullyQualifiedErrorId : MethodNotFound
> 
> 
>