Skip to content

Instantly share code, notes, and snippets.

@Doopin
Created April 27, 2015 14:11
Show Gist options
  • Save Doopin/215cd04df2d48a425079 to your computer and use it in GitHub Desktop.
Save Doopin/215cd04df2d48a425079 to your computer and use it in GitHub Desktop.
Validation not working for date format YYYY-MM
<div class="form-group">
<label for="startDate" class="col-xs-12 control-label">Start date</label>
<div class="col-xs-12">
<input id="startDate" required name="experience[startDate]" data-fv-notempty-message="date is required"
type="date" placeholder="YYYY-MM" class="form-control revalidate start-date input-sm single-date-picker-month"
data-fv-date="true" data-fv-date-separator="-" data-fv-date-format="YYYY-MM" data-fv-date-message="Invalid date"/>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment