WeekdayName Function in VB.NET

How to use the Weekdayname function in VB.NET?


WeekdayName Function

WeekdayName Date Function in Visual Basic.net 2008 accepts a day of the week as integer, to return a string representing the name of day of the week. Usually this function is used with the Weekday function.


Module Module1
Sub Main()
Console.WriteLine("Weekday for the date '05/22/2010'is::
" & WeekdayName(Weekday("5/22/2010")))
End Sub
End Module

In the above example, the day value is got using the Weekday date function, then the weekday name is returned using the WeekdayName function represented as a string.

Visual Basic Tutorial

Ask Questions

Ask Question