Date validation in Ruby
<p>How to check if the date is valid date in ruby. Many of the methods are check only the range. But, I need to check the date with day of
week to check whether the date is valid or not. For Ex:</p>

<pre><code>    20 Jul 2016 Wed --&gt; Valid
    20 Jul 2016 Mon --&gt; Not-Valid
</code></pre>

<p>How to do this in ruby ?</p>