After receiving a JSON
response with a date property in the format of yyyy-MM-dd
, I am aiming to convert it into the default JavaScript format which is:
Mon Jun 13 2016 16:35:48 GMT-0400 (Eastern Daylight Time)
using Angular.js.
I carefully reviewed the date filter documentation available at https://docs.angularjs.org/api/ng/filter/date. It seems that the "fullDate" format mentioned there includes a timezone, but doesn't match the desired format exactly.
I am wondering if there is a method in Angular to achieve this conversion by utilizing the $filter
object?