Number of days in a month

Dim daysInMonth As Integer = Date.DaysInMonth(Now.Year, Now.Month)

MsgBox(String.Format("Number of days in the current month: {0}", daysInMonth))

Related posts:

  1. Is this a leap year Dim leapYear As Boolean = Date.IsLeapYear(Now.Year) MsgBox(String.Format("{0} is a leap...
  2. Current date and time Dim rightNow As Date = Now Dim result As New ...
  3. Get the exact date and time this will display the exact date and time when the...

Related posts brought to you by Yet Another Related Posts Plugin.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>