LSformElement_date : Fixed parsing date problem with some formats
[ldapsaisie.git] / public_html / includes / js / LSformElement_date_field.js
index 413bd83..fac4bbd 100644 (file)
@@ -26,6 +26,7 @@ var LSformElement_date_field = new Class({
           this.params.format = "%d/%m/%Y";
         }
       }
+      Date.defineParser(this.params.format);
 
       this.calendar = new DatePicker(this.input, {
           format: this.params.format,