Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Converting VBScript's Minute Function


Windows PowerShell


Definition: Returns a whole number between 0 and 59, inclusive, representing the minute of the hour.

Minute

Wow: you need to know the exact minute for a specified date-time value? No problem: just use the Get-Date Cmdlet and grab the value of the Minute property:



$a =(get-date).minute

When you run this command and then echo back the value of $a you should get the following (depending on the actual time, of course):



24


Return to the VBScript to Windows PowerShell home page

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.