Answers for "check for exact format yyyy-mm-dd in java"

0

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;
Posted by: Guest on May-13-2021

Code answers related to "check for exact format yyyy-mm-dd in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language