title: How to disabled selected date (asp.net mvc4)
body: <p>I  am trying to make an appointment page in MVC4. It is working well but I would like to disable the date which is chosen. Here is my controller to make an appointment:</p>
  
  <pre><code>public ActionResult Make()
         {
             return View();
         }
         [HttpPost]
         [ValidateAntiForgeryToken]
         public ActionResult Make(Models.AppModel User)
         {
             if (Session["UserEmail"] != null)
             {
                 using (var db = new MaindbModelDataContext())
                 {
                     var patient = db.Patients.FirstOrDefault(u =&gt; u.Email == (String)Session["UserEmail"]);
  
                     var app = new Appointment();
  
                     app.Date = (DateTime)User.Date;
                     app.Description = User.Description;
                     app.Status = "isPending";
                     app.PatientNo = patient.PatientNo;
                     app.AppNo = Guid.NewGuid().GetHashCode();
                     db.Appointments.InsertOnSubmit(app);
                     db.SubmitChanges();
  
                 }
             }
             else
             {
                 return RedirectToAction("Index", "User");
             }
             return RedirectToAction("Index", "Patient");
         }
         //
     }
  }
  </code></pre>
  
  <p>and here is my view with the datepicker</p>
  
  <pre><code>@model DentAppSys.Models.AppModel
  @{
      ViewBag.Title = "Appointment";
  }
  &lt;link type="text/css" rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"&gt;
  &lt;script src="//code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt;
  &lt;script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"&gt;&lt;/script&gt;
  
  @using (Html.BeginForm())
  {
      @Html.AntiForgeryToken();
      @Html.ValidationSummary(true, "");
      &lt;div&gt;
  
          &lt;fieldset&gt;
              &lt;legend&gt;Get an Appointment&lt;/legend&gt;
  
  
              &lt;div&gt;@Html.LabelFor(u =&gt; u.Date)&lt;/div&gt;
              &lt;div&gt;
                  @Html.TextBoxFor(u =&gt; u.Date, htmlAttributes: new { id = "DatePicker" })
                  @Html.ValidationMessageFor(u =&gt; u.Date)
  
              &lt;/div&gt;
  
              &lt;div&gt;@Html.LabelFor(u =&gt; u.Description)&lt;/div&gt;
              &lt;div&gt;
                  @Html.TextBoxFor(u =&gt; u.Description)
  
              &lt;/div&gt;
  
              &lt;input type="submit" value="Submit" class="footer_btn" /&gt;
  
          &lt;/fieldset&gt;
  
      &lt;/div&gt;
  }
  &lt;script type="text/javascript"&gt;
      $(function () {
          $("#DatePicker").datepicker();
      });
  
  &lt;/script&gt;
  </code></pre>