title: Check for a valid date
body: <p>So I'm trying to figure out if there is another kind of way to check if a date is valid. So the idea is that if the date is valid then it continue's using the given date, if the date is invalid is uses the date of today.</p>
  
  <p>This is what I got at the moment:</p>
  
  <pre><code>        public void setBirthdate(int year, int month, int day)
          {
          if (month &lt; 1 || month &gt; 12 || day &lt; 1 || day &gt; DateTime.DaysInMonth(year, month))
          {
              Birthdate = DateTime.Today;
          }
          else
              Birthdate = new DateTime(year, month, day);
          }   
  </code></pre>
  
  <p>So is there any shorter/more readable way of doing this?</p>
  
  <p>Thanks in advance </p>