Date Format where Month is Named

Hi all.

I have hit a stumbling block. One of the items sent in a request uses the month abbreviated down into text e.g JAN , FEB, MAR.

I was using:

const date= require('moment');

    pm.environment.set("date", date().format("DD/MM/YYYY"));

but cannot use this now. Is there a way to get it to generate as:

02-FEB-2020 ?

This can be closed. Proper Rubber Duck

https://momentjs.com/docs/

(MMM)