JSFiddle - React, Tailwind, and code Playground
JavaScript
const date = new Date("2023-05-02");
date.setDate(date.getDate() - 1);
date.setUTCHours(24, 0, 0, 0);
const options = { timeZone: 'Europe/Berlin', year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit' };
const europeanDate = new Intl.DateTimeFormat('en-US', options).format(date);
console.log( new Date(europeanDate));