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

Aug 18, 2004
Post comments count0
Post likes count0

How Can I Determine How Long It Takes a Script to Run?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there a good way to time how long it takes for a script to run? -- BN, Montreal, Canada Hey, BN. Probably the easiest way to do this is to let the script time itself. To accomplish that feat, set the first line of the script to this: This code simply sets the value of the variable dtmStart to the current date and time. Now...

Scripting Guy!scripting techniquesVBScript
Aug 3, 2004
Post comments count0
Post likes count0

How Can I Get Yesterday’s Date?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I’m writing a script, and I need to know yesterday’s date. I can use Date() to figure out today’s date, but how do I figure out yesterday’s date?-- SS Hey, SS. You’re right; it’s easy to determine today’s date using a script: But what about yesterday’s date? Listen, we’ve got good news for you: it’s just as easy to determine ye...

Scripting Guy!scripting techniquesVBScript