JavaScript function for the get the formatted date of tomorrow
With Intl.DateTimeFormat you can also format the date elements to 2 and 4 digits. You code would then look something like this:
const getDateStringForTomorrow = () =&gt; {
  const tomorrow = new Date();
  tomorrow.setDate(tomorrow.getDate() + 1);
  const day   = new Intl.DateTimeFormat('en', { day: '2-digit' }).format(tomorrow);
  const month = new Intl.DateTimeFormat('en', { month: '2-digit' }).format(tomorrow);
  const year  = new Intl.DateTimeFormat('en', { year: 'numeric' }).format(tomorrow);
  return day + '.' + month + '.' + year;

};

console.log(getDateStringForTomorrow());

Another variant uses the European date format to get the order of the elements correctly and then only replaces dashes by dots:
const getDateStringForTomorrow = () =&gt; {
  const tomorrowDate = new Date();
  tomorrowDate.setDate(tomorrowDate.getDate() + 1);
  const tomorrowStr = new Intl.DateTimeFormat('uk', { day: '2-digit',  month: '2-digit', year: 'numeric' }).format(tomorrow);
  return tomorrowStr.replaceAll('-','.');

};

console.log(getDateStringForTomorrow());

The advantage of using Intl.DateTimeFormat() is that it writes out very clearly what you want.