I have a problem since I am receiving a date in the form that is seen in the image and I only use the pure date without the time, the time is causing me a conflict in what I am doing and I want to eliminate it if possible and I cannot change the form of the database that's why I want to do it Js.
Use slices:
cadena.slice(inicioTrozo[, finTrozo])
From then on you can convert it to a datetime with
Date.parse()
.