티스토리 뷰

개발

asp 월의 마지막 날짜 구하기

Hello™ 2014. 2. 15. 14:30

Function Get_Lastday(nYear, nMonth)

    Get_Lastday = Day(DateSerial(nYear, nMonth + 1, 1 - 1))

End Function


lastDate = Get_Lastday("2014", "01")

Response.Write lastDate


결과: 31