DatePicker format not working

Hi!

My site was working great up until about a week ago, not sure so I can only guess but the problem seems to be that a datePicker on my site has for some reason changed the formatting of it’s value, so it doesn’t get saved.

I have this form on my site where my customers can request for an offer for my service on a given day. It used to work nice and the requests came through nice but now I get this error when I inspect the site:

Page doesn’t have any code, only the form which used to work so that it submits the given information to a database in which the form was linked to. My site works so that the same information goes from database to another where I add some information on every round and where I use code to select the item and move it to another database, but now it won’t move at all because of that value parameter stuff.

Has there been an update in the datePicker or have I done something wrong?

Thank you in advance!
-Robert

Since you say that the page does not have any code which means you might be using Wix Forms. In this case its best for you to contact Wix Support for your issue.

Yeah I guess so, been trying some different methods around it, formatting the datetime to different forms but still not working. I’ll try to elaborate the situation a little bit more with a page that I have code on: The page where my customers were able to request for an offer works just fine now without the datePicker, but it’s really crucial to know the date so I’m kinda having my back up against the wall here. Anyways, the requests go to a database called “offerRequests” and from there I used this snippet of code to move it into another database where the offer was handled with the customer:

import wixData from 'wix-data';

export async function CreateEvent_click_1(event) {
    let toInsert = $w("#Tarjouspyynnot").getCurrentItem(); //gets the    current item
try{
    await wixData.insert("Keikkalista", toInsert); //inserts the offer request to a bookings list (Tarjouspyynnöt = offer request or as I said offerRequest..., an Keikkalista = bookings list)
    await wixData.remove("Tarjouspyynnot", toInsert._id);
    $w("#CreateEvent").disable(); // disables it.
    $w("#Tarjouspyynnot").refresh() //refreshes the item
}catch(error) {
    console.log("error", error);
}
}

export async function button4_click_1(event,$w) {
    let toUpdate = $w("#Tarjouspyynnot").getCurrentItem(); //gets the current item
try{
    await wixData.update("Tarjouspyynnot", toUpdate._id);
    $w("#Tarjouspyynnot").refresh() //päivittää sivun
}catch(error) {
    console.log("error", error);
}
}

export async function button12_click(event,$w) {
    let toInsert = $w("#Tarjouspyynnot").getCurrentItem(); //gets the current item
try{
    await wixData.insert("poistetut", toInsert);
    await wixData.remove("Tarjouspyynnot", toInsert._id);
    $w("#button12").disable(); // disables it.
    $w("#Tarjouspyynnot").refresh() //päivittää sivun
}catch(error) {
    console.log("error", error);
}
}

What I think is funniest is that I had a Wix Form that displayed the data, but I had a different button than the “Submit” button that did the work to move it from this database to another. The other buttons are “Update” which kept the item in the original database but with added information (button_4) and “Remove” as it says (button_12).

BUT, now this doesn’t work because of the said error code. The items move nicely from base to another if I don’t pick a date, but as soon as I pick a date in the offer requests and try to move it to bookings list the error just shows up. And this started happening suddenly without me changing the code.

So TL;DR:
datePicker format is stopping me from moving item from a database to another and giving the following error in the browsers inspect console.

Also, I’m quite new to javascript and web developing so this may be the result of something else…