Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToLocalizedStringTransformer::transform
Transforms a normalized date into a localized date string/array.
Signature
public function transform(DateTime
$dateTime )
Parameters
$dateTime
— object- Normalized date.
Returns
- string|array
- Localized date string/array.
Errors/Exceptions
-
TransformationFailedException
- If the given value is not an instance