Posts

Showing posts from April, 2024

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 --------------------------------------------