As of now I can get the json format of my data using this code
var bookingReserve = ['{!! $booking !!}'];
var json = JSON.parse(bookingReserve);
console.log(json);
and output like this
What I need to do is to generate json format based on the data thrown by bookingReserve
and
set date format Y-m-d to starts_at and ends_at
Unfortunately I can't filter the date format of the fields using laravel as I ask here
Convert DATE_FORMAT to Y-m-d? Using Larave Eloquent Raw Select
So what I'm trying to do is to generate json format and set Y-m-d date format for both fields using javascript
