moment js format dd/mm/yyyy code example
Example 1: moment format date dd/mm/yyyy
moment(new Date()).format("DD/MM/YYYY")
Example 2: moment yyyy-MM-ddTHH:mm
moment().format("YYYY-MM-DD[T]HH:mm:ss");
Example 3: moment to date
moment().toDate();