This discussion is archived
1 2 Previous Next 21 Replies Latest reply: Sep 18, 2008 4:56 AM by 843785 RSS

Date validation- need help

843785 Newbie
Currently Being Moderated
Hi, I am trying to validate my date input from the front end which has to be in mm/dd/yyyy format only...I am unsing the code as shown below

DateFormat dateFormatter = new SimpleDateFormat("mm/dd/yyyy");
convertedValue = dateFormatter.parse(fieldValue);

but this is not working..any format is being accepted :(
1 2 Previous Next