class DateTimeNormalizer implements NormalizerInterface, DenormalizerInterface
Normalizes an object implementing the {see \DateTimeInterface} to a date string. Denormalizes a date string to an instance of {see \DateTime} or {see \DateTimeImmutable}.
Constants
FORMAT_KEY
Methods
__construct(string $format = \DateTime::RFC3339)
array|string|bool|int|float|null normalize(object $object, string $format = null, array $context = array()) Normalizes an object into a set of arrays/sc