Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #program #check #date #format #java
ADD COMMENT
Topic
Name
9+8 =