摘要: 官方文档 http://momentjs.cn/ moment使用,把某个时间时间戳转换成日期 1。某个时间时间戳转换成日期 moment(时间戳 ).format("YYYYMMDD") 2。获取某个日期当月的最后一天 moment(“2019-04-05”).endOf('month').for 阅读全文
posted @ 2020-06-28 18:05 自律·给我自由 阅读(659) 评论(0) 推荐(0)
摘要: 1、Thu Mar 07 2019 12:00:00 GMT+0800 (中国标准时间) 转换为 2019-03-07 12:00:00 const d = new Date(Thu Mar 07 2019 12:00:00 GMT+0800 (中国标准时间))const resDate = d.g 阅读全文
posted @ 2020-06-28 13:41 自律·给我自由 阅读(1445) 评论(0) 推荐(1)