Learn about Windows PowerShell
Summary: Use Windows PowerShell to create a date in the future.
How can I easily create dates in the future?
Use the Get-Date cmdlet and add days to it:
@JRV absolutely :-)
In fact, you can find all of the things you can add, by using this code:
Get-Date | get-member -MemberType method add*
Adding weeks and months is very useful.
Aha! So with Windows PowerShell I can have my very own TARDIS! :)
"May the Power of the Shell be with you my son"
So simple, yet so useful, been using this one for I don't know how long
subtraction is easy too, (Get-Date).adddays(-7)
Is this an error:
PS > ([datetime]0).AddYears(0)
Monday, January 1, 0001 12:00:00 AM