working with dates and the Moment.js library