f.Date().getMonth()
f.Date(DateString, FormatString).getMonth()
개요
f.Date()로 생성된 Date객체의 월을 문자열 형식으로 반환합니다.
예시
//f.Date().date == Thu Oct 22 2020 15:10:29 GMT+0900 (대한민국 표준시)
f.Date().getMonth() // 10
var nextMonth = f.Date().getCalcDate('M',1).getDate() // 20201122
f.Date(nextMonth).getMonth() // 11
Last updated
Was this helpful?