Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skeleton: "Bhm" is not supported #936

Open
LilyLi2019 opened this issue Jan 4, 2023 · 1 comment
Open

skeleton: "Bhm" is not supported #936

LilyLi2019 opened this issue Jan 4, 2023 · 1 comment

Comments

@LilyLi2019
Copy link

I used skeleton: "Bhm" to format a date.
It throwed following exception:
code: 'E_INVALID_OPTIONS',
invalidField: 'B',
type: 'skeleton',
value: 'Bhm'

My code:

var format2 = Globalize("zh-Hans").dateFormatter({ skeleton: "Bhm"})(new Date());
console.log(format2);

Could you please support 'B' in skeleton?

@rxaviers
Copy link
Member

rxaviers commented Jan 4, 2023

Hi @LilyLi2019, that's correct, the B pattern needs to be implemente. PR is welcome. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants