Noname > 03-09-10, 06:34 PM
Function totalDayOfMonth(m As Integer, y As Integer) As Integer
totalDayOfMonth = Day(DateSerial(y, m + 1, 0))
End Function
Private Sub Command0_Click()
Dim m As Integer, y As Integer
m = 2
y = 2010
MsgBox "thang " & m & " nam " & y & " co " & totalDayOfMonth(m, y) & " ngay "
End Sub