title: C# Looking to type in a Year and pull a date that is placed
body: <p>So I have a very small code that I am working on as I am new to C#. 
  I am looking to have it ask for the year - I.E - 2020 - and Provide the Month and day I have set behind in code. So for example. I am looking to pull - the 2nd Sunday after the 2nd Tuesday of every month. I have a code that does that now, but I have to change my code for each year. Is there a way to just type in the year and get those dates?</p>
  
  <p>I am just unsure how to go about doing this.</p>
  
  <pre><code>Console.WriteLine("Insert Year");
  string name =  Console.ReadLine();
  for (int mth = 1; mth &lt;= 12; mth++)
  {
      DateTime dt = new DateTime(2019, mth, 20);
      while (dt.DayOfWeek != DayOfWeek.Sunday)
          dt = dt.AddDays(1);
      Console.WriteLine(dt.ToLongDateString());
  }
  Console.ReadLine();  
  </code></pre>