|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61069 4 Digit Years for short date formats
Submitted: 2012-02-13 11:09 UTC Modified: 2018-02-13 14:06 UTC
Avg. Score:4.5 ± 0.7
Reproduced:6 of 7 (85.7%)
Same Version:4 (66.7%)
Same OS:2 (33.3%)
From: wgcrouch at gmail dot com Assigned:
Status: Open Package: intl (PECL)
PHP Version: 5.3.10 OS: Fedora
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-02-13 11:09 UTC] wgcrouch at gmail dot com
It would be useful to have a format similar to IntlDateFormatter::SHORT, that has 
4 digit years. I know that you can specify a custom format, but that loses the 
usefulness of have locale specific formats. Eg for En_US the Short format is 
m/d/y with a 2 digit year. Now if I want my users to enter full years and display 
four digit years I need to create a custom format for US and any other locale 
with 2 digit years. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-13 11:10 UTC] wgcrouch at gmail dot com
Fixing typo in title
 [2012-02-13 11:10 UTC] wgcrouch at gmail dot com
-Summary: 4 Digit Years for shot date formats +Summary: 4 Digit Years for short date formats
 [2018-02-13 14:06 UTC]
-Package: Date/time related +Package: intl
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC