Could not parse date parameter: Invalid Date issue in Safari and Firefox

Solution 1:

Issue was with the moment method to format the date. Passing an additional argument with format will fix the issue.

 date =  moment(date, 'MM-DD-YYYY hh:mm A');