CassidyHunt
IS-IT--Management
I know this is simple but I want to add 30 seconds to the current date and time so I can set that as the expiration for a cookie. Here is my current algorythm. It doesn't add anytime at all.
Thanks
Cassidy
Code:
function CheckDate() {
var _test = new Date();
var _test2 = new Date();
_test2.setDate(_test.getDate() + (30 * (1/24/60/60)));
alert(_test.toUTCString() + "\n30 Seconds Later\n" + _test2.toUTCString());
}
Thanks
Cassidy