[Vuejs]-Value/Input lifecycle issues

0👍

You are assigning a moment object back to the start_date variable, but instead it should be a moment formatted back to a string, like this:

this.start_date = start_date.format('YYYY-MM-DD');

So when the if statement is true, the end_date cloned moment object is still transformed into a string.

👤8bit

Leave a comment