use moment.js to parse and format times