Usage: being able to specify date formats on date times.
/**
* @ApiProperty(
* attributes={
* "normalization_context": {
* "datetime_format": "Y-m-d"
* }
* }
* )
*/
Secondary, could we default the date time format if the doctrine type was date as opposed to datetime?
Steps that should make this work:
Currently I use the following workaround:
__toString() methods to get proper formatNo updates on this?
@raresserban It'd require property-level context support in Symfony Serializer first. Please open a feature request with Symfony if you're keen to see this happen.
Relevant comments:
Most helpful comment
@raresserban It'd require property-level context support in Symfony Serializer first. Please open a feature request with Symfony if you're keen to see this happen.
Relevant comments: