해당월의 마지막일을 구하는 함수
- Posted at 2007/12/07 17:33
- Filed under 일함서/함수바리
function Month_Day(i_year, i_month)
dim now_first_date : now_first_date = i_year &"-"& RIGHT("0"& i_month,2) &"-01"
dim next_first_date : next_first_date = DateAdd("m",1,now_first_date)
dim now_last_date : now_last_date = DateAdd("d",-1,next_first_date)
dim now_month_days : now_month_days = Day(now_last_date)
Month_Day = now_month_days
end function
dim now_first_date : now_first_date = i_year &"-"& RIGHT("0"& i_month,2) &"-01"
dim next_first_date : next_first_date = DateAdd("m",1,now_first_date)
dim now_last_date : now_last_date = DateAdd("d",-1,next_first_date)
dim now_month_days : now_month_days = Day(now_last_date)
Month_Day = now_month_days
end function
Posted by web20korea
- Tag
- ASP





,
날짜함수



,
해당월의 마지막일을 구하는 함수




- Response
- No Trackback , No Comment

