Created
December 9, 2022 08:12
-
-
Save runezero/bf773bac20f50a73951557d3989a4c53 to your computer and use it in GitHub Desktop.
[Postman Current Date Time] Set a Postman global variable with the current Date and Time in a single variable #tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const moment = require('moment'); | |
pm.globals.set("currentTime", moment().format("YYYY-MM-DDTHH:mm:ssZ")); | |
//2022-12-09T09:11:50+01:00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment