this is my code in vb6. How to in vb.net??? Please tell me?? Thank's

Public Function Tgl_Max(Month As Integer, YEAR As Integer) As Integer
    Tgl_Max = Day(DateSerial(YEAR, Month + 1, 0))
End Function
Public Function Tgl_Max(ByRef _month As Short, ByRef _year As Short) As Short
        Tgl_Max = CShort(DateAndTime.Day(DateSerial(_year, _month + 1, 0)))
    End Function
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.