A
A
Alexander2016-02-28 12:02:31
symfony
Alexander, 2016-02-28 12:02:31

How can fosrestbundle return a date field in a given format?

//Entity
/**
* @ORM\Column(name="test_d", type="date", nullable=false)
* @Type("DateTime<'Ymd'>")
*/
protected $test_d;
In JSON
"test_d":"2016-02-28T00:00:00+0300"
How to convert to "human" view?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Romanenko, 2016-02-28
@slimus

Maybe try this: stackoverflow.com/questions/24629132/doctrine2-fos...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question