I’m trying to create an Duo API Test on synthetics and the header needs a Date that is converted on RFC2822 format.
Thu, 18 Jul 2019 03:08:51 -0000
I tried using
var utcDate = new Date().toUTCString();
but I’m having this as result
Thu, 18 Jul 2019 03:08:51 GMT
How do i get or convert the
My temporary solution as of now is this
var subStrDuodate = utcDate.toString().substring(0,25) + " -0000";
Thanks in advance!