Carefully with moment.js dates from variables
moment(undefined)
returns same as moment(new Date())
so it’s important to validate values send to it, as it will show some date but not proper one.
moment(undefined)
returns same as moment(new Date())
so it’s important to validate values send to it, as it will show some date but not proper one.