momen lokal
import moment from 'moment'
import 'moment/locale/es' // without this line it didn't work
moment.locale('es')
vilmacio
import moment from 'moment'
import 'moment/locale/es' // without this line it didn't work
moment.locale('es')
var now = moment("de").format("LLL");
moment(testDate).format('MM/DD/YYYY');
let now = moment()
let now = now.toDate()
moment.locale(); // en
moment().format('LT'); // 8:41 PM
moment().format('LTS'); // 8:41:43 PM
moment().format('L'); // 04/11/2020
moment().format('l'); // 4/11/2020
moment().format('LL'); // April 11, 2020
moment().format('ll'); // Apr 11, 2020
moment().format('LLL'); // April 11, 2020 8:41 PM
moment().format('lll'); // Apr 11, 2020 8:41 PM
moment().format('LLLL'); // Saturday, April 11, 2020 8:41 PM
moment().format('llll'); // Sat, Apr 11, 2020 8:41 PM
// undefined
var time = "15:30:00";
var formatted = moment(time, "HH:mm:ss").format("LT");
console.log(formatted);
//it will return 3:30 PM