Get the day of the week name - Visual Basic .NET

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

The name of the day will be displayed in Label1

Add the following code to Form load event.

Dim Date As Date
Dim DayName As String
Date = #2/12/1969#
DayName = WeekdayName(Weekday(Date))
Label1.Text = DayName


Share This

Home | About | Contact | Privacy Policy

Copyright visual-basic-tutorials.com 2017 - All Rights Reserved.