how to get current date time in moment js code example Example: moment js print date moment(testDate).format('MM/DD/YYYY');