title: C# Cannot implicitly convert type 'string' to 'System.DateTime'
body: <pre><code>DateTime Time = DateTime.Now;
  string format = "ddd";
  Console.WriteLine(Time.ToString(format));
  if (Time = "Mon; Tue; Wed; Thu; Fri;") 
  
  {
      Console.WriteLine("It is a week day");
  }
  
  else
  {
      Console.WriteLine("it is a weekend");
  }
  </code></pre>
  
  <p>I'm trying to get this code to check for the date and the display a response based on the day. Sorry if this is a simple question but I'm new to coding and I cant find a solution anywhere</p>