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