title: c# check date is weekend or weekday
body: <pre><code>DayOfWeek today = DateTime.Today.DayOfWeek;
  if (today == DayOfWeek.Sunday || today == DayOfWeek.Saturday)
  {
    ClientScript.RegisterStartupScript(GetType(), "alert", "alert('" weekend"');", true);
  }
  else
  {
      ClientScript.RegisterStartupScript(GetType(), "alert", "alert('" weekday"');", true);
  }
  </code></pre>
  
  <p>From line above i am able to find if today is weekend or weekday</p>
  
  <p>now i want to get the date from user input
  i tried this but fail,</p>
  
  <p>my text input format : 2016-10-04</p>
  
  <pre><code>string dateInput = dateTextbox.Text;
  DayOfWeek today = DateTime.dateInput.DayOfWeek;
  </code></pre>