import moment from 'moment'; moment().format(); code example Example: format a date moment moment(testDate).format('MM/DD/YYYY');