Let say I have an object product
I can use product.createdDate
to get 2018-04-16 15:12:46.179427
or any other date with the same format.
how do I convert to date in javascript so I and show it as 16 April 2018
?
I'm using angularjs.
I tried {{product.createdDate | date : 'dd MM, yyyy'}}
but it show 2018-04-16 15:12:46.179427