DateTimeToStringTransformer::transform()

mixed transform(DateTimeInterface $dateTime)

Transforms a DateTime object into a date string with the configured format and timezone.

Parameters

DateTimeInterface $dateTime A DateTimeInterface object

Return Value

mixed The value in the transformed representation

Exceptions

TransformationFailedException If the given value is not a \DateTimeInterface
doc_Symfony
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.