I am using moment.js to generate dates, and it works flawlesly. However, I was wondering if there was a way to generate a date in moment,js like so:
const date = require('moment'); const myNewDate = date().add(5, 'days').format("DD-MMM-YYYY");
but if the date fell on a weekend or bank holiday, it would generate a the next working day?
If this is not possible in moment.js, does postman support momentjs-business ?
ideally something like
var momentBusinessDays = require("moment-business-days") momentBusinessDays('20-09-2018', 'DD-MM-YYYY').businessAdd(3)._d