How to count the number of days in a specific month with VB.NET

1 Answer

0 votes
Module Module1

    Sub Main()

        Console.WriteLine(DateTime.DaysInMonth(2018, 9))
        Console.WriteLine(DateTime.DaysInMonth(2018, 8))

    End Sub

End Module

' run:
' 
' 30
' 31

 



answered Sep 19, 2018 by avibootz
...