class DateTimeToLocalizedStringTransformer extends BaseDateTimeTransformer
Transforms between a normalized time and a localized time string.
__construct(string $inputTimezone = null, string $outputTimezone = null, int $dateFormat = null, int $timeFormat = null, int $calendar = \IntlDateFormatter::GREGORIAN, string $pattern = null) Constructor. | ||
mixed | transform(DateTimeInterface $dateTime) Transforms a normalized date into a localized date string/array. | |
mixed | reverseTransform(mixed $value) Transforms a localized date string/array into a normalized date. |
Constructor.
Transforms a normalized date into a localized date string/array.
Transforms a localized date string/array into a normalized date.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformer.html