Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Create DateTime Object for Any Date

$
0
0

Summary: Use Windows PowerShell to easily create a DateTime object X days in the future.

Hey, Scripting Guy! Question How can I use Windows PowerShell to create a DateTime object for a date at some point in the future?

Hey, Scripting Guy! Answer Use the AddDays method from the DateTime object, for example:

(get-date).AddDays(8)


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>