Date Header in Postman
If you're working with APIs there is a chance you may be using Postman to interact with it.
The APIs you're interacting with may require the
Date header, to know at what point in time the request has originated. Most HTTP clients, Postman included, will not send this by default, so we need to do a little bit of work to get it sending.
pm.globals.set("dateHeader", new Date().toUTCString()); // => Wed, 29 Apr 2020 16:50:34 GMT
Then in Postman, we can reference this variable in our header as