A bunch of our sql migration files are named by the convention "V201801011200__migration.sql", and I've been assigned to write a java method to pick the latest migration. I want to do so by parsing the "201801011200" into a Java Datetime (or other similar object if this string's format isn't supported by Datetime).
How would I go about doing that? Please note that I am unable to rename these migration files into "2018-01-01-12:00", etc.