Im using jQuery.validity plugin to validate PHP form.
I need to validate whether the input date format is in dd-MMM-yyyy, but the plugin default is mm/dd/yyyy.
When I use this code,
$("#txtFromDate")
.require()
.match("date")
.lessThanOrEqualTo(new Date());
it asks to enter date in its default format.
How to change the input date format to dd-MMM-yyyy (eg: 01-FEB-2012)?