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

Add datetime validation #575

Merged
merged 2 commits into from Feb 9, 2020
Merged

Add datetime validation #575

merged 2 commits into from Feb 9, 2020

Conversation

psampaz
Copy link
Contributor

@psampaz psampaz commented Feb 6, 2020

  • Tests exist or have been written that cover this particular change.
  • doc.go was updated
  • en translation and translation tests were updated

Change Details:

This PR adds a new validation that checks that a string value is a valid datetime based on the supplied datetime format. Supplied format must match the official Go time format layout as documented in https://golang.org/pkg/time/

@go-playground/admins

@psampaz
Copy link
Contributor Author

psampaz commented Feb 9, 2020

I will rebase this one

@deankarn
Copy link
Contributor

deankarn commented Feb 9, 2020

@psampaz cool was just about to resolve conflicts, will wait for your rebase if you can be done soon.

@deankarn deankarn merged commit c68441b into go-playground:master Feb 9, 2020
@psampaz psampaz deleted the datetime branch February 11, 2020 10:15
fairyhunter13 added a commit to fairyhunter13/validator that referenced this pull request Jul 12, 2020
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.

None yet

2 participants