DateTime format in YAML configuration
Configuring JMSSerializerBundle, I only find examples on date formatting for Annotations, but not on how set it in YAML, so:
Which is the equivalent in YAML for this
@Type("DateTime<'Y-m-d'>")
For now, this is working,
dob:
expose: true
type: DateTime
but the output is the one set in the main config, so
handlers:
datetime:
default_format: "c" # ISO8601
default_timezone: "UTC"
outputs
"1982-06-06T00:00:00+02:00"
I want it to be
"1982-06-06"
as is a birth date and I don't care for the time