title: How to sort a date (YYMMDD) and validate it?
body: <p>I'm creating a project which requires a date in YYMMDD format so I'm looking for a way that I can use to validate it's a "date" and how can I sort the dates? Any help is appreciated.</p>
  
  <p>Data type should be int.</p>