0

Is there any easy way to validate input date in balckberry? I tried RegEx but couldn't success. Does any one have a validation method.

Thanks.

KAPLANDROID
  • 1,099
  • 1
  • 12
  • 23

1 Answers1

1

As you get date as a String in parts, use java.util.Calendar class to build a java.util.Date instance. In case of exception the entered date is not correct.

Intercept this exception in your validation method and return false.