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

Aug 4, 2010
0
0

Manipulating Date Ranges with Windows PowerShell

ScriptingGuy1
ScriptingGuy1

  Hey, Scripting Guy! I need to be able to add and subtract dates so that I can use the results in custom queries for various Windows event logs using Windows PowerShell. Is doing this type of date manipulation easy or hard to do with Windows PowerShell? If it is not too difficult to do, could you whip up some examples of searching date range...

Scripting Guy!Windows PowerShellscripting techniques
Aug 3, 2010
0
0

How to Express Dates in Different Fashions with Windows PowerShell

ScriptingGuy1
ScriptingGuy1

  Hey, Scripting Guy! I need to use Windows PowerShell to be able to parse dates. We have dates that are displayed in different ways. Some are day/month/year, others are month/day/year, and still others are year/month/day. I need to be able to express these different date configurations with a minimal amount of monkeying around. Is this doab...

Scripting Guy!Windows PowerShellscripting techniques
Aug 2, 2010
0
0

Using Windows PowerShell to Work with Dates

ScriptingGuy1
ScriptingGuy1

  Hey, Scripting Guy! I need to be able to use Windows PowerShell to work with dates. Dates have always been a difficult thing to work with, and I just dread scripting anything that has to do with dates. It seemed that VBScript had a dozen functions that were used to work with dates and times. Is there something similar for Windows PowerShell...

Scripting Guy!Windows PowerShellscripting techniques
Jan 27, 2010
0
0

Dandelions, VCR Clocks, and Last Logon Times: These Are a Few of Our Least Favorite Things

ScriptingGuy1
ScriptingGuy1

  (Note: This blog post appeared originally as an article on the old Microsoft Script Center. It was originally published in December 2005. We are resurrecting it here by popular demand.) Sometimes the things that should be so easy turn out to be incredibly difficult. For example, have you ever tried to get rid of dandelions? (One of the Scrip...

Scripting Guy!scripting techniquesVBScript
Dec 31, 2008
0
0

Hey, Scripting Guy! How Can I Create File Names Based on Their Time Stamp?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I create a file name from the date? I have this application that creates a log file, and every hour I would like to save that log file as a file whose name is generated from the current time stamp. Can this be done?- RH Hi RH, Ever since I read your e-mail message, I have had this old Rolling Stones tune stuck in my h...

Scripting Guy!Windows PowerShellscripting techniques