async function showServerTime() {
  const responseFromServer = await fetch('/date');
  const textFromResponse = await responseFromServer.text();

  const dateContainer = document.getElementById('date-container');
  dateContainer.innerText = textFromResponse;
}
/** Fetches the current date from the server and adds it to the page. */
Fetches the current date from the server and adds it to the page.
Fetches the current date from the server and adds it to the page .
async function showServerTime() {
  const responseFromServer = await fetch('/date');
  const textFromResponse = await responseFromServer.text();
  const dateContainer = document.getElementById('date-container');
  dateContainer.innerText = textFromResponse;
}
async function showServerTime ( ) { const responseFromServer = await fetch ( '/date' ) ; const textFromResponse = await responseFromServer . text ( ) ; const dateContainer = document . getElementById ( 'date-container' ) ; dateContainer . innerText = textFromResponse ; }
Fetches the current date from the server and adds it to the page.
Fetches the current date from the server and adds it to the page .