DEV Community

Krixnaas
Krixnaas

Posted on • Edited on

5 2

Set Current Date with Format on PostMan Request

const moment = require('moment');
pm.globals.set("today", moment().format("YYYY-MM-DD"));
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Retry later