How to compare two dates FORMATS for saving to DB
<p>I want to compare two <strong>date formats</strong> and return "false" when two <strong>formats</strong> are <strong>not equal</strong>. </p>

<p>For example, I get two dates, 24/10/2012 (DD/MM/YYYY) and 2016/11/05 (YYYY/MM/DD)... in this case some function should return false because date formats <strong>are not equal</strong>.</p>

<p>I want a function thats returns false when the second format to compare not equal the SQL format (YYYY-MM-DD).</p>