Author: (shea@silverstripe.com.au)
Inheritance: extends Object
 public function removeParsley()
 {
     parent::removeParsley();
     $this->field->setAttribute('data-parsley-dateiso', '');
 }
 /**
  * Constructor
  * @param string $type Type of validation
  * @param int $val1 First value
  * @param int $val2 Second value
  */
 public function __construct($type, $val1, $val2 = null)
 {
     $this->type = $type;
     $this->val1 = $val1;
     $this->val2 = $val2;
     parent::__construct();
 }