2012-03-06 2 views
0

C#에서 MonthCalendar를을 사용하여 일일 선택한 날짜에 추가 : MessageBox.Show(monthCalendar1.SelectionStart.ToString()); 나 "2012-03-03 0시 0분 0초 '보여선택하는 방법이 코드가

내가 다른 메시지 박스를 가지고 싶습니다

.? 하루 "2012-03-04 0시 0분 0초는"이렇게 지정한 selectionStart 가정

답변

2
MessageBox.Show(monthCalendar1.SelectionStart.AddDays(1).ToString()); 
0

유형 날짜 시간이며이 작업을 수행하는 방법에 일일보기 자동 선택 일에 추가,이 시도 :

MessageBox.Show(monthCalendar1.SelectionStart.AddDays(1).ToString()); 

Documentation on MSDN

관련 문제