I want to validate a textbox which needs to accept ony in the format Date in YYYY-MM-DD HH:MM using
<!DOCTYPE html>
<html>
<body>
<form action="/action_page_post.php" method="post">
<input type="text" name="fname" required>
<input type="submit" value="Submit">
</form>
<p>If you click submit, without filling out the text field,
your browser will display an error message.</p>
</body>
</html>
It should turn red or glow if something is other than said format.