program to check if the given date is in in the format dd/mm/yyyy java code example
Example: program to check if the given date is in in the format dd/mm/yyyy java
//Using Regex
boolean checkFormat;
if (input.matches("([0-9]{2})/([0-9]{2})/([0-9]{4})"))
checkFormat=true;
else
checkFormat=false;