Set Current Date with Format on PostMan Request

const moment = require(‘moment’);
pm.globals.set(“today”, moment().format(“YYYY-MM-DD”));


This content originally appeared on DEV Community and was authored by Krixnaas

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


This content originally appeared on DEV Community and was authored by Krixnaas


Print Share Comment Cite Upload Translate Updates
APA

Krixnaas | Sciencx (2022-06-03T00:34:50+00:00) Set Current Date with Format on PostMan Request. Retrieved from https://www.scien.cx/2022/06/03/set-current-date-with-format-on-postman-request/

MLA
" » Set Current Date with Format on PostMan Request." Krixnaas | Sciencx - Friday June 3, 2022, https://www.scien.cx/2022/06/03/set-current-date-with-format-on-postman-request/
HARVARD
Krixnaas | Sciencx Friday June 3, 2022 » Set Current Date with Format on PostMan Request., viewed ,<https://www.scien.cx/2022/06/03/set-current-date-with-format-on-postman-request/>
VANCOUVER
Krixnaas | Sciencx - » Set Current Date with Format on PostMan Request. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/06/03/set-current-date-with-format-on-postman-request/
CHICAGO
" » Set Current Date with Format on PostMan Request." Krixnaas | Sciencx - Accessed . https://www.scien.cx/2022/06/03/set-current-date-with-format-on-postman-request/
IEEE
" » Set Current Date with Format on PostMan Request." Krixnaas | Sciencx [Online]. Available: https://www.scien.cx/2022/06/03/set-current-date-with-format-on-postman-request/. [Accessed: ]
rf:citation
» Set Current Date with Format on PostMan Request | Krixnaas | Sciencx | https://www.scien.cx/2022/06/03/set-current-date-with-format-on-postman-request/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.