Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-314

org.apache.commons.validator.DateValidator and format "ww/yyyy" for week 01/2013

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.1 Release, 1.4.0 Release
    • None
    • Routines
    • None
    • org.apache.commons.validator.DateValidator

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            originedelavie mbenali
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: