Windows Phone Developers

Thursday, August 14, 2008

Get No of Days in a month using VB.NET

Get No of Days in a month using VB.NET

Count no of days in Current Month using Vb.NET, VB.NET Get No of Days in a month

Sub Get_No_Of_Days()


MsgBox("This month has " & NoOfDays(DateTime.Now.Year, DateTime.Now.Month) & " days")

Catch ex As Exception


End Try

End Sub

Function NoOfDays(ByVal MyYear As Integer, ByVal MyMonth As Integer) As Integer

Return DateTime.DaysInMonth(MyYear, MyMonth)

End Function

DayCount using VB.NET, .NET Function to Count No of Days in a month

Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon


  1. hello sir

    i want to know that

    how many Saturday in the month which we are select