I have date and amount fields that can be null in form submission. When I display these fields in details page with date and amount(0.00) using filters it throws
Invalid argument '0000-00-00 00:00:00' for pipe 'DatePipe' and Invalid argument '0.00' for pipe 'Number'
Asked
Active
Viewed 2,195 times
-1

Amsi Maganti
- 1
- 3
-
obviously how would angular2 convert null value to some number or date? – micronyks Aug 07 '16 at 11:19
2 Answers
0
Without seeing the actual form I can't help you debug it, but just a not about filters and pipes, they convert existing values.
I think your best bet is to make sure you have defaults for your date and whatever other amount you are filtering.
For example your date would default to today, and amount to zero, then the filter should work.
Good luck.

mikias
- 416
- 3
- 10