How can we check that a string considered to be a MySQL TIMESTAMP is actually valid? The format used is:
YYYY-MM-DD HH:MM:SS[.fraction]
where "fraction" has 3 digits.
For example 2016-03-28 12:17:30.022
should be valid. Preferably I would like to avoid regex and use time.Parse()
but any other suggestion is welcome.