I utilized the materialize datepicker to select a date in French format. Now I need to convert this formatted date back to a date object for use in my API. Here's how I attempted to revert the date to a standard format:
moment("dimanche 30 juillet 2017","dddd D MMMM YYYY").locale('fr').toDate();
However, I am receiving an Invalid Date
error. Is there a method using moment to successfully convert this date? Alternatively, is there a way to connect with the materialize component to retrieve a standard date?