commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mbenali (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (VALIDATOR-314) org.apache.commons.validator.DateValidator and format "ww/yyyy" for week 01/2013
Date Fri, 04 Jan 2013 16:30:12 GMT

     [ https://issues.apache.org/jira/browse/VALIDATOR-314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

mbenali updated VALIDATOR-314:
------------------------------

    Description: 
this code return false

===============================================================
weekStr = "01/2013";
validBool = (dateValidator.isValid(weekStr, "ww/yyyy", false));
================================================================

the value of validBool = false, only for the first week of 2013

because the first day of this week (01/2013) is the monday 31 December 2012 ?

thank's

  was:
this code return false

===============================================================
weekStr = "01/2013";
validBool = (dateValidator.isValid(weekStr, "ww/yyyy", false));
================================================================

the value of validBool = false, only for the first week of 2013

because the first day of this week (01/2013) is the monday 31 December 2012

    
> org.apache.commons.validator.DateValidator and format "ww/yyyy" for week 01/2013
> --------------------------------------------------------------------------------
>
>                 Key: VALIDATOR-314
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-314
>             Project: Commons Validator
>          Issue Type: Bug
>          Components: Routines
>    Affects Versions: 1.3.1 Release, 1.4.0 Release
>         Environment: org.apache.commons.validator.DateValidator
>            Reporter: mbenali
>            Priority: Minor
>
> this code return false
> ===============================================================
> weekStr = "01/2013";
> validBool = (dateValidator.isValid(weekStr, "ww/yyyy", false));
> ================================================================
> the value of validBool = false, only for the first week of 2013
> because the first day of this week (01/2013) is the monday 31 December 2012 ?
> thank's

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message