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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
maliPosted Sep 21, 2008, 1:01 PM
Alan
Thenk you
AlanPosted Sep 20, 2008, 12:59 PM
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();