Here's my version of this function.
VB Code:
Function DaysInMonth(MthNum As Integer, YrNum As Integer) As Integer Dim dtTemp As Date dtTemp = DateSerial(YrNum, MthNum, 1) DaysInMonth = DateAdd("M", 1, dtTemp) - dtTemp End Function
|
Results 1 to 8 of 8
Thread: Where's the error?Threaded View
|
Click Here to Expand Forum to Full Width |