Add function to my currentDate code

Hi,

I’m trying to change the ‘currentDate’ format from this:
wrongFormat

to this:
rightFormat

Here is the code that I’m trying to use:

<div id="current_date" class="date" onload="showDate()"></div>

<style>
  body {
}
  
  .date {
  position: absolute;
  color: #DC493C;
  font-size: 52px;
  font-family: Helvetica;
  letter-spacing: 2px;
}
</style>


<script>
date = new Date();
year = date.getFullYear();
month = date.getMonth() + 1;
day = date.getDate();
document.getElementById("current_date").innerHTML = day + "/" + month + "/" + year;
</script>

<function formatDate(date) {
  const MONTHS = [
    Enero,
    Febrero,
    Marzo,
    Abril,
    Mayo,
    Junio,
    Julio,
    Agosto,
    Septiembre,
    Octubre,
    Noviembre,
    Diciembre
    ;]
          
    return ${DAYS[date.getDay()]}, ${
    MONTHS[date.getMonth() + 1]
  } ${date.getDate()} ${date.getFullYear()};
}

I’m starting to learn code, don’t judge me please :sweat_smile:

Thank you,
Nadie Crea.