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

Format for date range #4

Closed
michele-widesrl opened this issue Oct 2, 2023 · 2 comments
Closed

Format for date range #4

michele-widesrl opened this issue Oct 2, 2023 · 2 comments

Comments

@michele-widesrl
Copy link

hi, I'm using your wonderful package to display the data of the last week (2023-09-25 / 2023-10-03) using the between method, I would like to format the labels with the classic Y-m-d format but the package forces me to use the toFormattedDateString. Is the possibility of choosing a custom format planned?

eliseekn added a commit that referenced this issue Oct 2, 2023
Update README.md
@eliseekn
Copy link
Owner

eliseekn commented Oct 2, 2023

Hello! Thank you for using my package. I've made a new update based on your request. To enhance flexibility, I utilized the 'isoFormat' method from Carbon. As a result, I've introduced a new parameter called 'string $isoFormat = 'YYYY-MM-DD'' to the 'between' method.

If you want to achieve the 'Y-m-d' date format you desire, simply leave the parameter value as the default.

@eliseekn eliseekn closed this as completed Oct 2, 2023
@michele-widesrl
Copy link
Author

great job that's exactly what I was trying to do.

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