?
Solved

In PowerShell how can I get a string containing the time 5 minutes from now in HH:MM format?

Posted on 2014-08-05
2
Medium Priority
?
297 Views
Last Modified: 2014-08-05
In PowerShell I need to populate a string with the current time plus 5 minutes.  The format must be "HH:MM".
0
Comment
Question by:McThump
2 Comments
 
LVL 85

Accepted Solution

by:
oBdA earned 2000 total points
ID: 40242246
Get-Date (Get-Date).AddMinutes(5) -Format HH:mm

Open in new window

0
 

Author Closing Comment

by:McThump
ID: 40242258
Works.  Thanks for the remarkably quick response!
0

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question