title: Writing JS regex for YYYY-MM-DD HH:MM
body: <p>I'm new with JS and I need to validate a date in a form. The date field is a <strong>regular text field</strong>. The name of the date field called "date". How can I validate if the date is from the format of YYYY-MM-DD HH:MM with a simple regular expression in JS?</p>
  
  <p>Thanks</p>