Autor deambulando | en ASP, Programación | el 23-01-2008
Etiquetas: ASP, dia, funcion, getlastmonthday, Internet, mes, Programación, ultimo
Pues eso!! le pasas una fecha y te devuelve el último día del mes que puede tener esa fecha ;)
Function lastMonthDay(byval sDate)'obtiene el ultimo dia del mes
dim nextMonth
sDate = DateSerial(Year(sDate), Month(sDate), "01")
nextMonth = DateAdd("m", 1, SDate)
lastMonthDay = Day(DateAdd("d", -1, nextMonth))
End Function
Recomendados:
