mimonts js
npm install moment --save # npm
yarn add moment # Yarn
moment.locale(); // en
moment().format('LT'); // 8:49 AM
moment().format('LTS'); // 8:49:26 AM
moment().format('L'); // 10/13/2020
moment().format('l'); // 10/13/2020
moment().format('LL'); // October 13, 2020
moment().format('ll'); // Oct 13, 2020
moment().format('LLL'); // October 13, 2020 8:49 AM
moment().format('lll'); // Oct 13, 2020 8:49 AM
moment().format('LLLL'); // Tuesday, October 13, 2020 8:49 AM
moment().format('llll'); // Tue, Oct 13, 2020 8:49 AM
4.71
7
moment().format('MMMM Do YYYY, h:mm:ss a'); // December 17th 2020, 2:06:38 pm
moment().format('dddd'); // Thursday
moment().format("MMM Do YY"); // Dec 17th 20
moment().format('YYYY [escaped] YYYY'); // 2020 escaped 2020
moment().format(); // 2020-12-17T14:06:38+03:00
Thank you!
7
0
Are there any code examples left?
New code examples in category Html