Moment jetzt Format
var date = moment().format('MM/DD/YYYY');
Open Oyster
var date = moment().format('MM/DD/YYYY');
moment(date).fromNow();
moment().format(); // "2019-08-12T17:52:17-05:00" (ISO 8601, no fractional seconds)
moment().format("dddd, MMMM Do YYYY, h:mm:ss a"); // "Monday, August 12th 2019, 5:52:00 pm"
moment().format("ddd, hA"); // "Mon, 5PM"
moment(testDate).format('MM/DD/YYYY');
moment().format('MMMM Do YYYY, h:mm:ss a'); // March 26th 2021, 12:25:33 pm
moment().format('dddd'); // Friday
moment().format("MMM Do YY"); // Mar 26th 21
moment().format('YYYY [escaped] YYYY'); // 2021 escaped 2021
moment().format(); // 2021-03-26T12:25:33-04:00
YYYY-MM-DDTHH:mm:ss