title: How do I validate a date in YYYY-MM-DD format in Perl?
body: <blockquote>
    <p>Related/Possible duplicate: <a href="https://stackoverflow.com/questions/297398/how-can-i-validate-dates-in-perl">How can I validate dates in Perl?</a></p>
  </blockquote>
  
  <p>I have created a script where start and end date needs to be given by user while executing the script. The date format entered by user should be in <code>YYYY-MM-DD</code> format only.</p>
  
  <pre><code>start_date = $ARGV[0];
  end_date = $ARGV[1];
  </code></pre>
  
  <p>please advise.</p>