I'll help with the regex, if that's something you want to understand:
If you want to match yyyy/MM/dd HH:mm then use
\d{4}\/\d{2}\/\d{2}\s\d{2}:\d{2}
See it working here
To explain:
\d{4} four digits (year) yy
\/ escape slash
\d{2} two digits (month) MM
\/ escape slash
\d{2} two digits (date) dd
\s single space character
\d{2} two digits (hour) hh
: colon (string literal)
\d{2} two digits (minutes) mm
For your other version just swap over the 4 and 2
\d{2}\/\d{2}\/\d{4}\s\d{2}:\d{2}
You can then check the date for valid numbers - but as Tim Biegeleisen says, you should check for all months.