Get the name of the month - Visual Basic .NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

The name of the month will be displayed in Label1

Add the following code to Form load event.

Dim Month As Integer
Dim name As String
Month = Today.Month
name = MonthName(Month, False)
Label1.Text = name


Share This

Home | About | Contact | Privacy Policy

Copyright 2017 - All Rights Reserved.