Open xgqfrms opened 4 years ago
格式错误
HH 与 hh
HH
hh
new Date(1580796000000) // Tue Feb 04 2020 14:00:00 GMT+0800 (China Standard Time) moment(1580796000000).format('YYYY MM DD, hh:mm:ss'); // "2020 02 04, 02:00:00" moment(1580796000000).format('YYYY-MM-DD, HH:mm:ss'); // "2020-02-04, 14:00:00"
https://momentjs.com/
https://momentjs.com/docs/#/parsing/string-format/
https://momentjs.com/docs/#/displaying/format/
https://stackoverflow.com/questions/15993913/format-date-with-moment-js
https://flaviocopes.com/momentjs/
https://www.sitepoint.com/managing-dates-times-using-moment-js/
https://www.freecodecamp.org/news/the-ultimate-guide-to-javascript-date-and-moment-js/
moment.js 时间转化 bug
format