moment react to format date code example Example: moment for react npm install --save moment react-moment