Powershell: Get-Date (in the future)

Powershell: Get-Date (in the future)


Today I needed to know what date it would be 400 days from now. Since I do not have 400 fingers to work that out or the time to count out 400 days on a calendar, I started up Windows Powershell and used it to tell me the date 400 days from now.

(Get-Date).AddDays(400)

Simple! The answer returned was Thursday, 17 July 2014. Powershell never ceases to amaze me 🙂

Until next time!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s