최신 업데이트: 2024. 01. 30 현재 시각 구하기 moment() const now = moment(); console.log(now.toLocaleString()); // Tue Jan 30 2024 13:58:30 GMT+0900 특정 날짜를 Moment 객체로 만들기 moment('YYYY-MM-DD') 날짜 문자열을 파라미터로 전달한다. 이때 Moment.js에 지원되는 여러 문자열 포맷이 있는데, 여기를 참고한다. const myDate = moment('2024-01-01') console.log(myDate.toLocaleString()); // Mon Jan 01 2024 00:00:00 GMT+0900 특정 시각보다 먼저인지 뒤인지 알아내기 moment.isBefore(moment..