I just could not found any way to check if the provided pattern is valid or not before validating any date.For example\[code\]String datePattern = "blablabla";\[/code\]How can we validate if its a valid pattern to create an object SimpleDateFormat or any other dateFormat.Thanks.