June 10th, 2013

PowerTip: Use PowerShell to Create Future Dates

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to create a date in the future.

Hey, Scripting Guy! Question How can I easily create dates in the future?

Hey, Scripting Guy! Answer Use the Get-Date cmdlet and add days to it:

(Get-Date).adddays(2)

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback