HOW TO FIND DAYS IN MONTH IN VB.NET
=======================================================================================
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MessageBox.Show("In the year 2004, February has " & Date.DaysInMonth(2004, 2).ToString & " days.")
MessageBox.Show("In the year 2005, February has " & Date.DaysInMonth(2005, 2).ToString & " days.")
MessageBox.Show("In the year 2006, NOV has " & Date.DaysInMonth(2006, 11).ToString & " days.")
'MessageBox.Show(da)
End Sub
=======================================================================================
No comments:
Post a Comment