How to Use Moment JS in React & Next JS

How to Use Moment Package for converting time into visual format ----


1. yarn add moment

2. import moment from 'moment'

3. moment(data).format('MMMM Do YYYY, h:mm:ss a')


/// Here data is obtained from the Array of object

/// For more Details use this doc ---> https://momentjs.com/


-------------------------------------------- Thank You -------------------------------------------- 

Comments

Popular posts from this blog

ATMEL FLIP Software installation on Windows 10 - Problem "Could not find a Java Virtual Machine can't continue" Fixed

PROTEUS crashed and all error Solved