Checking name of the day

Hello,

I have small issue. I must check after entering date what weekday stand for this date.

example:

I entering date: 2006-04-05 and after click button. System return me weekday: Wednesday.

I entering date: 1999-08-30 and after click button. System return me weekday: Friday.

I want this make in the VB .NET



Answer this question

Checking name of the day

  • pithhelmet

    Try the DayOfWeek function on the Date type:

    CType(textboxDate.Text, Date).DayOfWeek.ToString


  • Checking name of the day