Does anyone have guidance on how to get the previous days date, naturally this would be in a vbscript? I would need the year, month, and day in UTC format.
Any help or pointers to other resources would be great!
Get previous days Date
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Get previous days Date
BTW, DateAdd can add/subtract (by adding a negative number) a day, month, year, hour, or whatever - http://www.w3schools.com/Vbscript/func_dateadd.asp for docs.
Get previous days Date
They DO allow it. I just don't get to do it much. I have a conference next month in Orlando, though, so am going a couple days early for a bit of a break.
Get previous days Date
Hi CitrixDude,I know you mentioned VBScript, but this is really easy in JScript:JScript's dates are all UTC, so it makes things really easy.Bill
Code: Select all
var d = new Date(new Date().getTime() - 86400 * 1000);