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()
Try
MsgBox("This month has " & NoOfDays(DateTime.Now.Year, DateTime.Now.Month) & " days")
Catch ex As Exception
MsgBox(ex.Message)
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
hello sir
ReplyDeletei want to know that
how many Saturday in the month which we are select
thnks...........
ReplyDelete