A time span represents a time interval, and you can use time spans to subtract or add time to a date. For example, to get the date seven days ago:
(Get-Date) – (New-Timespan -day 7)
A time span represents a time interval, and you can use time spans to subtract or add time to a date. For example, to get the date seven days ago: