title: Check if dateTime is a weekend or a weekday
body: <pre><code>&lt;script Language="c#" runat="server"&gt;
    void Page_Load()
    {
     DateTime date = DateTime.Now;
     dateToday.Text = " " + date.ToString("d");
     DayOfWeek day = DateTime.Now.DayOfWeek;
     dayToday.Text = " " + day.ToString();
  
     if ((dayToday == DayOfWeek.Saturday) &amp;&amp; (dayToday == DayOfWeek.Sunday))
      {
      Console.WriteLine("This is a weekend");
      }
  
   }
  &lt;/script&gt;
  </code></pre>
  
  <p></p>
  
  <p>Using dateTime, I am trying to test whether or not the current date is a weekday or weekend, then I would like to print the response to the user. Currently I am receiving a Runtime Error. If I remove my if statement the first items (the current date, and the day of the week) print properly.</p>