PowerTip: Use PowerShell to Display Number of Minutes in a Day


Summary: Use Windows PowerShell to display the number of minutes in a day.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily display how many minutes are in a day?

Hey, Scripting Guy! Answer Create a timespan equal to one day, and then select the total minutes from it:

(New-TimeSpan -Days 1).totalminutes

Comments (1)

  1. Philippe CROGIEZ says:

    24*60

Skip to main content