|107195||Feb 19,2013 10:57 AM UTC||Feb 20,2013 12:13 PM UTC||ASP.NET MVC (Classic)||1|
Thanks for contacting Syncfusion forums.
Your requirement setting the start date in Datepicker can be achieved using MinDate property of the control. Please refer the below code snippet.
public ActionResult Index()
DatePickerModel model = new DatePickerModel();
//To set the start date // You can also set the date like this
model.MinDate = DateTime.Today.Date; model.MinDate = new DateTime(2013, 01, 10);
//To set the end date
model.MaxDate = DateTime.Now.AddMonths(5); model.MaxDate = new DateTime(2013, 12, 10);
// To set the deafult date
model.DefaultDate = new DateTime(2013, 02, 20);
model.DisplayDefaultDateOnLoad = true;
ViewData["date"] = model;
We have also prepared a simple sample for your convenience and it can be downloaded from the below link.
Kindly have a look at the sample and let us know if it helps.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.