Check out example codes for "date format moment". It will help you in understanding the concepts better.

Code Example 1

moment.locale();         // en
moment().format('LT');   // 11:47 AM
moment().format('LTS');  // 11:47:55 AM
moment().format('L');    // 08/27/2020
moment().format('l');    // 8/27/2020
moment().format('LL');   // August 27, 2020
moment().format('ll');   // Aug 27, 2020
moment().format('LLL');  // August 27, 2020 11:47 AM
moment().format('lll');  // Aug 27, 2020 11:47 AM
moment().format('LLLL'); // Thursday, August 27, 2020 11:47 AM
moment().format('llll'); // Thu, Aug 27, 2020 11:47 AM

Code Example 2

var date = moment().toDate();// get JS Date object from moment object

Learn ReactJs, React Native from akashmittal.com