I have two date formats in Strings i.e:
1981-12-07 and 07-11-1991
String one_date = "1981-12-07";
String another_date = "07-11-1991";
and I need to convert them in one format.
For example in "yyyy-MM-dd";
All I want is to insert this strings correctly into sqlite database so it all should be the same format, ok?
java SimpleDataFormat eats everything without checking.
Substring is not suitable here. Can someone tell me the method of checking?