|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: wgcrouch at gmail dot com
New email:
PHP Version: OS:


 [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: Wed Nov 29 22:01:27 2023 UTC