Anybody could please give me link on how to find last day of the month.
I googled some, but its hard for me to understand.




Posted 21 July 2011 - 11:44 PM
Posted 22 July 2011 - 12:30 AM
Public Function GetLastDayOfMonth(intMonth, intYear) As Date
GetLastDayOfMonth = DateSerial(intYear, intMonth + 1, 0)
End Function
Dim datLastDay as date datLastDay=GetLastDayOfMonth(Month(Date()),Year(Date))) 'This line got error: Date is a type and cannot be used as expression.
This post has been edited by Elda: 22 July 2011 - 12:31 AM
