# Date Format where Month is Named

**URL:** <https://community.postman.com/t/date-format-where-month-is-named/14769>\
**Category:** Help Hub\
**Created:** [August 6, 2020, 8:02am UTC](https://community.postman.com/t/date-format-where-month-is-named/14769 "2020-08-06T08:02:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JBird20](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JBird20](https://community.postman.com/u/JBird20)\
**Post date:** [August 6, 2020, 8:02am UTC](https://community.postman.com/t/date-format-where-month-is-named/14769/1 "2020-08-06T08:02:02Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![JBird20](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JBird20](https://community.postman.com/u/JBird20)\
**Post date:** [August 6, 2020, 8:16am UTC](https://community.postman.com/t/date-format-where-month-is-named/14769/2 "2020-08-06T08:16:04Z")

</div>

This can be closed. Proper Rubber Duck

[https://momentjs.com/docs/](https://momentjs.com/docs/)

(MMM)
