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

date.js #1685

Closed
wants to merge 1 commit into from
Closed

date.js #1685

wants to merge 1 commit into from

Conversation

viper1310
Copy link

$.validator.addMethod( "date", function( date_number, element ) {
date_number = date_number.replace( /(|)|\s+|-/g, "" );
return this.optional( element ) || date_number.length > 9 &&
date_number.match( /^[0-9]{2}:[0-9]{2}$/ );
}, "Please specify a valid date" );

@staabm
Copy link
Member

staabm commented Jan 13, 2016

What kind of date does this method test for? Whats your use case?

@staabm
Copy link
Member

staabm commented Jan 28, 2016

closing because no feedback. feel free to discuss whatever you wanted to achieve with this PR.

@staabm staabm closed this Jan 28, 2016
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