[Vuejs]-DateRangePicker doesn't recognise carbon date

0👍

The footage_date was supposed to be passed as a moment instance, not as a date string, therefore, modifying the ready function did it

 ready: function(){
        this.$http.get('/api/footage')
            .then(function(response){
                footages = response.data
                footages.forEach(footage => {
                    footage.footage_date = moment(footage.footage_date)
                })
                this.tableData = footages
            }.bind(this))
    }
👤Mike

Leave a comment