I am using moment.js to set the expiration date of my cookie (expires
variable). The code below works fine in Chrome but IE11 and Edge just will not set the expiry date on the cookie
var nowDate = new Date();
var creationDate = moment(nowDate);
var expiresDate = moment(nowDate).utc();
expiresDate.add(exdays, "d");
var expires = "expires=" + expiresDate.toDate();
Everything I have read talks about IE11 expectign UTC format but even though I UTC() the moment object, IE11 is still not setting an expiry date