Reputation: 31
I just could not find any way to check if the provided pattern is valid or not before validating any date.
For example
String datePattern = "blablabla";
How can we validate if it's a valid pattern to create an object SimpleDateFormat or any other dateFormat.
Thanks.
Upvotes: 2
Views: 7262