Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Support "2-digit" month format #195

Closed
alexnb opened this issue Jun 29, 2016 · 2 comments
Closed

Support "2-digit" month format #195

alexnb opened this issue Jun 29, 2016 · 2 comments

Comments

@alexnb
Copy link

alexnb commented Jun 29, 2016

Hello,

unfortunately I cannot confirm that Issue #128 is resolved. I use Intl.js-1.2.4 with phantomjs-2.1.1 and still, the "2-digit month" option produces single-digit month values. The following QUnit test fails (actual result is "6"):

assert.equal(new Intl.DateTimeFormat('en', {
month: '2-digit'
}).format(Date.now()), "06");

Could you please help, I guess this feature is quite commonly used (at least I need it urgendly :) ).

Thanks and best regards
Alexander

@caridy
Copy link
Collaborator

caridy commented Jul 1, 2016

few folks have been looking to add support for a single token formats, If nobody gets a PR before next Thru., I will attempt to implement it.

@caridy
Copy link
Collaborator

caridy commented Jul 1, 2016

dupe of #190

@caridy caridy closed this as completed Jul 1, 2016
@caridy caridy mentioned this issue Jul 21, 2016
6 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants