| Author: Prafulla S Shimpi 30 Sep 2008 | Member Level: Gold | Rating:   Points: 3 |
if(calEndDate.SelectedDate >= calStartDate.SelectedDate) { lblResConf.Text="A room is available."+_ "Your Reservation Details are: <p>"+_ "Room Type:" + 1stroomType1.SelectedItem.Text+_ "<br>"+1stroomtype2.SelectedItem.Text+_ "<br>From:"+_ calStartDate.SelectedDate.ToShortString()+_ "<br>To:"+_ calStartDate.SelectedDate.ToShortString(); } else { lblResConf.Text="Reservation Error!The"+_ "Ending date must be after starting date";
Answer is:
Choice 2 Change ToShortString() to ToShortDateString().
please correct me i I am wrong
|