/** * Date Widget Constructor * * @param string $formName The name of the form this widget belongs to * @param string $fieldName The name of the field this widget represents * @param array $fieldConfig The configuration for this field * @param string $format Date input format: MDY or DMY */ public function __construct($formName, $fieldName, $fieldConfig, $format = "MDY") { parent::__construct($formName, $fieldName, $fieldConfig); $this->setFormat($format); }