Summary: Use Windows PowerShell to display the number of minutes in a day.
How can I use Windows PowerShell to easily display how many minutes are in a day?
Create a timespan equal to one day, and then select the total minutes from it:
(New-TimeSpan -Days 1).totalminutes...
Summary: Microsoft Scripting Guy, Ed Wilson, talks about optimizing Windows PowerShell code.
Microsoft Scripting Guy, Ed Wilson, is here. I was looking at my Windows Phone this morning and I noticed that today is Friday the 13th. What seemed a bit strange to me is that I thought there was also a Friday the 13th last month. I then became ...
Summary: Microsoft Scripting Guy, Ed Wilson, talks about creating custom date formats with Windows PowerShell.
Microsoft Scripting Guy, Ed Wilson, is here. One of the cool things about working with Windows PowerShell is that it is highly configurable. In short, if there is something that I do not like, I can change it. Most of the time, that ...
Summary: Microsoft Scripting Guy, Ed Wilson, talks about formatting date strings with Windows PowerShell.
Microsoft Scripting Guy, Ed Wilson, is here. It seems that different ways to display dates and times are in great supply. In fact, there are dozens of ways to do this. If I decide that I do not like the way a date or time displays, I can ...
Summary: Use Windows PowerShell to display the culture-specific format for a short date.
How can I use Windows PowerShell to display the format of a short date that is specific to the culture settings of my system?
Use the Get-Culture cmdlet and select the DateTimeFormat ...