php.net |  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
Votes:11
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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wgcrouch at gmail dot com
New email:
PHP Version: OS:

 

 [2012-02-13 11:09 UTC] wgcrouch at gmail dot com
Description:
------------
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. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

[1] <https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/udat_8h.html#adb4c5a95efb888d04d38db7b3efff0c5>
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Jan 25 18:01:23 2021 UTC