Answer the question
In order to leave comments, you need to log in
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
Maybe try this: stackoverflow.com/questions/24629132/doctrine2-fos...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question