I'm using this to display the D.O.B of a user and I'm getting the data from the database in 2016-08-22T12:39:29+0300 such a format. During the initial display, before interacting with the date picker, the date is displayed as above instead of 2016-08-22 (YYYY-MM-DD). This can be easily rectified by adding a coerce to the time property
I'm using this to display the D.O.B of a user and I'm getting the data from the database in
2016-08-22T12:39:29+0300
such a format. During the initial display, before interacting with the date picker, the date is displayed as above instead of2016-08-22
(YYYY-MM-DD). This can be easily rectified by adding a coerce to thetime
propertytime: { type: String, required: true, coerce(val) { if (val) { return _moment(val).format('YYYY-MM-DD') } return
${val}}, }
I'll create a PR with this