When I use Vuetify datetimepicker, I get the following date: "Wed Mar 16 2022 04:20:00 GMT+0100"
I need to convert this to ISO8601. But if I store this date in a variable called "date" and try to convert it like this:
date1 = new Date(date).toISOstring();
It returns an error that says "(intermediate value).toIsoString is not a function".
What am I doing wrong here? I'm assuming it's not a valid date object, but how can I then convert this mess into a working date object?