SyntaxFix
Write A Post
Hire A Developer
Questions
var startDate = $('#start_date').val().replace(/-/g,'/'); var endDate = $('#end_date').val().replace(/-/g,'/'); if(startDate > endDate){ // do your stuff here... }