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" );
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" );