HELP...I want to put selected date from montcalendar intu a variable and then
convert to string. I try several version but without success.
If anybody can help.... Thanks
HELP...I want to put selected date from montcalendar intu a variable and then
convert to string. I try several version but without success.
If anybody can help.... Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
mali47 reputationPosted Sep 21, 2008, 9:01 AM EDT
Alan
Thenk you
AlanRank #669 · 3.6K reputationPosted Sep 20, 2008, 8:59 AM EDT
This should work depending on whether there's a single date or a range of dates selected in the control:
if
(monthCalendar1.SelectionStart == monthCalendar1.SelectionEnd)label1.Text = monthCalendar1.SelectionStart.ToShortDateString();
elselabel1.Text = monthCalendar1.SelectionStart.ToShortDateString() +
" to " + monthCalendar1.SelectionEnd.ToShortDateString();