Showing tag results for dates and times

Jan 12, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Subtract Days From a UTC Date-Time Value in Windows 2000?

ScriptingGuy1

Hey, Scripting Guy! On a Windows 2000 computer, how can I subtract days from a UTC date-time value?-- KP Hey, KP. Yes, we do blame all of this on Scripting Guy Dean Tsaltas. The Scripting Guy who writes this column has known Dean for six years now, and Dean has spent those entire six years complaining about the weather in the Seattle area. Not b...

Scripting Guy!scripting techniquesVBScript
Jan 2, 2007
Post comments count0
Post likes count0

How Can I Append a Blank Line to a Text File, Then Append the Current Date and Time?

ScriptingGuy1

Hey, Scripting Guy! How can I append a blank line to a text file, then append the current date and time?-- PL Hey, PL. You know, back in the 1600s people were inordinately worried about witches and witchcraft. Fortunately, though, they developed a sure-fire test to determine whether or not someone was a witch: the accused was weighted down with ...

Scripting Guy!scripting techniquesVBScript
Nov 7, 2006
Post comments count0
Post likes count0

How Can I Separate Hours and Minutes in a Date-Time Value?

ScriptingGuy1

Hey, Scripting Guy! In determining system uptime I get back a value like 65.75 hours. How can I convert this value to "65 hours and 45 minutes"?-- JM Hey, JM. We’ll see what we can do for you, but we have to be honest: this is a very sad day for the Scripting Guys. Thanks to the baseball playoffs the Scripting Guy who writes this column had never ...

Scripting Guy!scripting techniquesVBScript
Aug 25, 2006
Post comments count0
Post likes count0

How Can I Determine the First Friday in a Month?

ScriptingGuy1

Hey, Scripting Guy! How can I determine the first Friday in a month?-- JB Hey, JB. You know, when we first glanced at this question we were hoping it said, “How can I determine if any given day in a month is a Friday?” Why? Well, if that was the case then we had a sure-fire method for you: just walk through the cafeteria in the Scripting Guys bu...

Scripting Guy!scripting techniquesVBScript
Aug 21, 2006
Post comments count0
Post likes count0

How Can I Save a File Based on the Day of the Week?

ScriptingGuy1

Hey, Scripting Guy! I need to save data to a text file each evening. How can I determine the day of the week and then save the file in the appropriate folder? For example, when the script runs on a Thursday then the file should be saved to C:\Logs\Thursday\Results.txt.-- TW Hey, TW. You know, the problem with the Scripting Guy who writes this co...

Scripting Guy!scripting techniquesVBScript