commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Lodha (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-891) working with multiple date Formats return a wrong date for dd/mm/yy
Date Mon, 29 Apr 2013 12:38:15 GMT
Amit Lodha created LANG-891:
-------------------------------

             Summary: working with multiple date Formats return a wrong date for dd/mm/yy
                 Key: LANG-891
                 URL: https://issues.apache.org/jira/browse/LANG-891
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.time.*
    Affects Versions: 3.2
         Environment: Windows
            Reporter: Amit Lodha
            Priority: Critical


hi,
while working with multiple date format, when i have date in format 25/11/09 i.e in dd/MM/yy
it return me a wrong result.

Previous Date: 01/11/09, Returned Date: 2009-01-11
Previous Date: 25/11/09, Returned Date: 2011-01-11

i was expecting my return date should be in yyyy-MM-dd format

Correct Result:
Previous Date: 25.11.2009, Returned Date: 2009-11-25
Previous Date: 25.Nov.2009, Returned Date: 2009-11-25
Previous Date: Nov.09, Returned Date: 2009-11-01
Previous Date: Nov.2009, Returned Date: 2009-11-01
Previous Date: 09.Nov, Returned Date: 2009-11-01
Previous Date: Nov2509, Returned Date: 2009-11-25
Previous Date: 2009-11-25, Returned Date: 2009-11-25





--
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