commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Antonio Pérez Testa <>
Subject Re: TimeStamp validator
Date Wed, 27 Apr 2005 08:16:51 GMT
Hola Rodolfo,
The javadoc for isDate states that the pattern is used with SimpleDateFormat.
Maybe your pattern is not correct for the validation your need.
Can you give us the pattern and the String to validate.

public static boolean *isDate*(java.lang.String value,
                             java.lang.String datePattern,
                             boolean strict)

Checks if the field is a valid date. The pattern is used with 

|Rodolfo García Esteban/CYII wrote:

>I use GenericValidator.isDate(), when I try to 
>validate with the pattern "dd/MM/yyyy" works well, but when I use the 
>pattern "dd/MM/yyyy hh:mm:ss", doesn't work well, it returns false when 
>checks a valid string. How  I can validate this pattern date?. Is there 
>any timeStampValidator or something like that?
>Thanks in advance,


José Antonio Pérez Testa
Ingeniería de Servicios e Innovación técnologica.

Telémaco 3
28027 - Madrid (ESPAÑA)
Tel: +34-91-480.81.12

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message