Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Function LastDayOfMonth(p_dtDate) as date
LastDayOfMonth = DateAdd("d", -1, DateAdd("m", 1, DateAdd("d", 1 - DatePart("d", p_dtDate), p_dtDate)))
End Function
Public Function vbLastDayOfMonth(l_dteDate As Date) As Date
'Usage/Example
'vbLastDayOfMonth(Now) :Note run on 6/22/01
'6/30/01
vbLastDayOfMonth = DateSerial(Year(l_dteDate), Month(l_dteDate) + 1, 0)
End Function