Showing results for dates and times - Scripting Blog [archived]

Oct 17, 2015
0
0

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

Doctor Scripto
Doctor Scripto

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

Scripting Guy!Windows PowerShellPowerTip
Mar 13, 2015
0
0

Optimize PowerShell Code?

Doctor Scripto
Doctor Scripto

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 curious. Ex...

Scripting Guy!Windows PowerShellscripting techniques
Jan 23, 2015
0
0

Create Custom Date Formats with PowerShell

Doctor Scripto
Doctor Scripto

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 change...

Scripting Guy!Windows PowerShellscripting techniques
Jan 22, 2015
2
0

Formatting Date Strings with PowerShell

Doctor Scripto
Doctor Scripto

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 change...

Scripting Guy!Windows PowerShellgetting started
Jan 21, 2015
0
0

PowerTip: Use PowerShell to Display Format for Short Date

Doctor Scripto
Doctor Scripto

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 and&n...

Scripting Guy!Windows PowerShellscripting techniques