$this->futureOnly ? SSDatetime::now()->format('m/d/Y') : null )); $this->addExtraClass($jsConfig); return parent::Field(); } /** * Sets the field so that only future dates can be set on them. * Only applies for JavaScript value, no server-side validation. * * @deprecated 2.4 */ function futureDateOnly() { $this->futureOnly = true; } } ?>