|  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: 2020-10-19 09:46 UTC
Avg. Score:4.5 ± 0.7
Reproduced:7 of 8 (87.5%)
Same Version:4 (57.1%)
Same OS:2 (28.6%)
From: wgcrouch at gmail dot com Assigned: cmb (profile)
Status: Closed Package: intl (PECL)
PHP Version: 5.3.10 OS: Fedora
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
33 + 12 = ?
Subscribe to this entry?

 [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
 [2020-10-19 09:46 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2020-10-19 09:46 UTC]
Well, that would need to be supported by ICU[1], so is out of
scope for PHP.

[1] <>
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Dec 03 07:01:26 2023 UTC