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

Support custom date format function for the input element #852

Closed
neelav opened this issue Apr 19, 2019 · 2 comments
Closed

Support custom date format function for the input element #852

neelav opened this issue Apr 19, 2019 · 2 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@neelav
Copy link

neelav commented Apr 19, 2019

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[ ] bug report
[ X] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

I have date formats that are using the momentjs format (which is slightly different than what primereact allows). Would it be possible to either support momentjs formats or supply some sort of formatDate option where I can specify a function that can convert a javascript Date object to a string? This would be used to format the text displayed in the text input element.

@cagataycivici
Copy link
Member

If we add a formatDate function, there will be a parseDate function as well so format and parse are handled on your side. We'll wait for more feedback to see if more users need this.

@mertsincan mertsincan added Status: Discussion Issue or pull request needs to be discussed by Core Team Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add labels Feb 9, 2021
@melloware melloware self-assigned this Sep 30, 2022
@melloware melloware removed the Status: Discussion Issue or pull request needs to be discussed by Core Team label Sep 30, 2022
@melloware melloware added this to the 8.6.2 milestone Sep 30, 2022
@melloware
Copy link
Member

Implemented in 8.6.2: #3381

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

4 participants