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

[11.x] Update Date Validation to support custom date format #54355

Closed
wants to merge 1 commit into from

Conversation

mrvipchien
Copy link
Contributor

This PR enhances the Date Validation logic by incorporating a configurable date format. Instead of relying on the default Y-m-d format, the Validator will now utilize the format specified in the format() method

@mrvipchien mrvipchien changed the title [11.x] Update Date Validation to Support Custom Date Formats [11.x] Update Date Validation to support custom date format Jan 25, 2025
@taylorotwell
Copy link
Member

You can just format the date when you pass it into the before, after methods, etc. since they accept strings.

@mrvipchien mrvipchien deleted the dateformat branch January 27, 2025 06:24
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 this pull request may close these issues.

2 participants