FE/NodeJS
[ Moment ] 날짜 차이 구하기
HEON.D
2022. 5. 20. 13:42
일
moment.duration(t2.diff(t1)).asDays()
시
moment.duration(t2.diff(t1)).asHours()
분
moment.duration(t2.diff(t1)).asMinutes()
밀리초
moment.duration(t2.diff(t1)).asMilliseconds()