DateTimeToLocalizedStringTransformer::transform()

mixed transform(DateTimeInterface $dateTime)

Transforms a normalized date into a localized date string/array.

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 or if the date could not be transformed.
doc_Symfony
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.