I tried to display date in specific format by pipe date then I got this error:
Uncaught Error: InvalidPipeArgument: 'Unable to convert "25/01/2019" into a date' for pipe 'e'
at Xe (main.fc4242d58c261cf678ad.js:1)
at e.transform (main.fc4242d58c261cf678ad.js:1)
at main.fc4242d58c261cf678ad.js:1
at main.fc4242d58c261cf678ad.js:1
at es (main.fc4242d58c261cf678ad.js:1)
at Cs (main.fc4242d58c261cf678ad.js:1)
at Object.updateRenderer (2.afd83a5d88a3f927f011.js:1)
at Object.updateRenderer (main.fc4242d58c261cf678ad.js:1)
at $a (main.fc4242d58c261cf678ad.js:1)
at us (main.fc4242d58c261cf678ad.js:1)
I received date info from API with string
"25/01/2019" then I display on html like this:
{{ item.date | date: 'dd MMM yyyy' }}
I don't know I did some mistakes or not. But, What I want to do is display date in another format and date input is string type.
Can I do it? if yes what is the way in this case? Thanks a lot.