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

[Feature Request] Format should support literal strings #15233

Closed
alex-dunn opened this issue Apr 23, 2019 · 0 comments · Fixed by #15525
Closed

[Feature Request] Format should support literal strings #15233

alex-dunn opened this issue Apr 23, 2019 · 0 comments · Fixed by #15525
Assignees
Milestone

Comments

@alex-dunn
Copy link

Existing Component

Yes

Component Name

DatePicker

Description

The format in datepicker does not support literal strings.
This means that if I want to have a date formatted as WC 22/04/2019 I would use the format WC dd/MM/yyyy. In the current version of the component this would result in the string 17C 22/04/2019.
The latest version of fecha allows the "[...]" syntax to specify strings that should be treated literally. I could use the format [WC] dd/MM/yyyy to get the desired results.

Example:
https://codepen.io/anon/pen/LvJzOr

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

Successfully merging a pull request may close this issue.

3 participants