Using moment.js to format dates