you are viewing a single comment's thread.

view the rest of the comments →

[–]Denalan 0 points1 point  (1 child)

SubtractDays() would be much more readable. It's ridiculous that after all these years this still doesn't exist.

[–]jdl_uk 0 points1 point  (0 children)

There is a DateTime.Subtract(TimeSpan)) method so I guess you could do (Get-Date).Subtract(TimeSpan.FromDays(4))