title: Validating Date (Leap year or not) before inserting into Database
body: <p>When I need to insert date into the database I need to check 2 things:</p>
  
  <ol>
  <li>If this month has 31 days in case day 31 was selected</li>
  <li>If February is selected, I need to check if it's a leap year in case the user selected 29</li>
  </ol>
  
  <p>Currently I'm checking this using a long function filled with <code>if's</code> and <code>else's</code>.</p>
  
  <p>Is there any method in <code>C#</code> that can check a date if it's valid or not before I insert it?</p>