f.Date().getLastDateOfMonth()
f.Date(DateString, FormatString).getLastDateOfMonth()
개요
f.Date()로 생성된 Date객체의 마지막 날을 Object 형태로 반환합니다.
예시
//f.Date().date == Thu Oct 22 2020 15:10:29 GMT+0900 (대한민국 표준시)
f.Date().getLastDateOfMonth().getDate() // 202010031
f.Date().getLastDateOfMonth().getDay() //31
f.Date().getLastDateOfMonth().format('YYYY/MM/DD') //2020/10/31Last updated
Was this helpful?