Moment.js assignment