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

Configurable date formats #37

Open
darrena092 opened this issue May 10, 2023 · 1 comment
Open

Configurable date formats #37

darrena092 opened this issue May 10, 2023 · 1 comment

Comments

@darrena092
Copy link

Hi!

Might put in a PR for this if there's interest in it.

I'm using this in a project, and found myself needing to change the date formats, as we don't tend to use Y-m-d much here in the UK (at least, users don't generally like it). I did this by just overriding the getCarbonDateFormat function.

It might be nice if we had some functions like useDateFormat('d/m/Y') and useTimeFormat('H:i:00') etc to make this a bit more straightforward.

@usmansaleem489
Copy link

I get around this by doing:
image

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