📅  最后修改于: 2022-03-11 14:52:42.601000             🧑  作者: Mango
//Using Regex
boolean checkFormat;
if (input.matches("([0-9]{2})/([0-9]{2})/([0-9]{4})"))
checkFormat=true;
else
checkFormat=false;