Wondering how can I avoid printing invalid date for null value. The null value is returned by the server and I need some way to print something like empty string so that it should stop printing invalid date. Thanks
The problem now I am facing is that on the back end side. On UI, it shows blank date but my date parser on the backend side is unable to parse empty string "". Is there a way I can display null with moment JS without passing empty string?
I am getting Parse exception just like mentioned here because beginning of the string cannot get parsed.
Thanks. I set the date to null first and then checked if the date is null or empty string, if it’s true then I again set the date to null otherwise I used the date parser. This thing worked.
I think there isn’t any way to deal with it from moment Js point of view.