Search code examples
c#winformsmonthcalendar

How do I get the "Day of the Week" using MonthCalendar?


I am using WinForms and I am trying to get the day of the week.

So if someone selects 2/16/2017 then I will get Thursday.

I know the DateTimePicker control can do this but I really need to use monthCalendar


Solution

  • Indeed, The easiest way to use DateTime.DayOfWeek.

    mounthCalerndar.SelectionStart.DayOfWeek 
    

    Should do the work.