Monday, November 14, 2022

How to set Date time while making PostMan Requests?

To set Date time while making Requests in PostMan, we can use Pre-request Script.

Sample Code:

const moment = require( 'moment' );    pm.environment.set( "currentDateTime", moment().utc().format( "YYYYMMDDTHHmmss" ) + "Z" );

No comments:

Post a Comment

Resize image in Mac OS

How to Easily Resize an Image on Mac Using Preview Ever tried to upload a photo to a website only to be told the file is too large? Or maybe...