Answers for "moment iso datetime format"

0

how to get iso date with moment

moment().toISOString(); // or format() - see below
Posted by: Guest on April-26-2020
0

format iso time in human readable format with moment js

// first install moment.js: npm i moment
import moment from 'moment'

let date = moment("2019-01-01", "YYYY-MM-DD");
console.log(date.fromNow()); // 3 years ago
Posted by: Guest on August-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language