Date

Date

Date

Methods

Inherited from TextField
Inherited from Element
Inherited from Input
Inherited from InputAttributesTrait
Inherited from Element
Inherited from BasicAttributesTrait

loadFrom

Overload the base loadFrom method to handle converting date formats.

Date::loadFrom( &$data ): self

Returns Self: This method can be chained.


setDateFromValue

Set the input value by converting a YYYY-MM-DD format back to localized value.

Date::setDateFromValue( string $value ): self

Returns Self: This method can be chained.


getLabelContext

Adds date format to the label description (if not already present)

Date::getLabelContext( $label ): string|boolean

Return Value: string|boolean