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)
Explore all the products and find the right solution for your business
Explore all the products and find the right solution for your business
Explore all the products and find the right solution for your business
by ps1Jul 8, 2010
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: