Error: InvalidPipeArgument: ‘2017-12-08 15:31:00’ for pipe ‘DatePipe’
html pipe code.
| date: ‘EEE, MMM, d’
This is working on windows/Android but iOS and safari throws error.
Whats wrong with this?
Error: InvalidPipeArgument: ‘2017-12-08 15:31:00’ for pipe ‘DatePipe’
html pipe code.
| date: ‘EEE, MMM, d’
This is working on windows/Android but iOS and safari throws error.
Whats wrong with this?
Using MomentModule not custom pipe.
try doing this.
npm install angular2-moment --save
then
on html
{{ chat.last_msg.date| amParse:‘DD/MM/YYYY hh:mm A’ | amDateFormat:‘hh:mm A’ }}
source link :- https://stackoverflow.com/questions/45668919/invalid-pipe-argument-in-ionic-3/45670293#45670293
Ive already fixed this issue months ago.
Thankyou!
Hey, I m facing the same issues can you tell me how did you solve the problem?