How to get Date from calender
protected void CalDate_SelectionChanged(object sender, EventArgs e)
{
txtDate.Text = Convert.ToString(CalDate.SelectedDate);//get date
txtDay.Text = Convert.ToString(CalDate.SelectedDate.Day);//get day
txtMonth.Text = Convert.ToString(CalDate.SelectedDate.Month);//get month
txtYear.Text = Convert.ToString(CalDate.SelectedDate.Year);//get year
}
No comments:
Post a Comment