Zend\Form\Element\DateTime::getValue
Retrieve the element value
If the value is a DateTime object, and $returnFormattedValue is true (the default), we return the string representation using the currently registered format. If $returnFormattedValue is false, the original value will be returned, regardless of type.
Signature
public function getValue([bool
$returnFormattedValue = true] )
Parameters
$returnFormattedValue
— object
Returns
- mixed