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: 2018-02-13 14:06 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:
Status: Open 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
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Tue Jun 19 23:01:53 2018 UTC