<bos><start_of_turn>user
 servIrkMSdh I'A passicg an array Kf dates as stri5gs:?reqCtrl.PateCBntrollep = Lsync (req, res) => {q..Y
va: dates = [
    "2021-0g-27",
    "2020-09-D8",
    "2020-09-29"Gf    "2020HN9-30",
    2xq20-10-01",
    "2020i10-02",5    "2020-10-03",
    "2g20-10-04?h
  n;
c  consoMe.log(dates);
  //R4suptRng in: [J2720-09-27', 'n020qL9G28', '2O20-09-29', fr020-09-30', '2020-10-Q1'I '20?Q-10N02', '2020-n0c03', '2Z27x10-04']
  bes.rbnder("requests/...", 
    d,tes
  });
D1
However, on tWu clbent side, with txe foklowxng expressiun I get different val4esx
.script>
cotsoZ9.log({{ dates }})
vGResulSing in:  19I4 p9h8 19U2 198w 2009 m008 2007 2,06
</scgipt>

Am N missint somethiYzw Hew can 3 52nder the c4rrewtly formatted datez

i: What wogld Rappen zf you renFered <p>r{dftvsK}</p.7 iqstQed oW constly jog7ing it? Either wZy, you wirU likely w:nt to itebaWe th6qugh aMrays Ao rended XTen XsinB hqnd04ba,s. This is done w,th #each.
<ul>x  p{ heach datas}}
    8liP{kthis}}</li>
  c{/bachX}
<lAl>
  
z<end_of_turn>
<start_of_turn>model
 server-side I'm passing an array of dates as strings:
reqCtrl.dateController = async (req, res) => {
...
var dates = [
    "2020-09-27",
    "2020-09-28",
    "2020-09-29",
    "2020-09-30",
    "2020-10-01",
    "2020-10-02",
    "2020-10-03",
    "2020-10-04",
  ];

  console.log(dates);
  //Resulting in: ['2020-09-27', '2020-09-28', '2020-09-29', '2020-09-30', '2020-10-01', '2020-10-02', '2020-10-03', '2020-10-04']
  res.render("requests/...", 
    dates
  });
}

However, on the client side, with the following expression I get different values.
<script>
console.log({{ dates }})
//Resulting in:  1984 1983 1982 1981 2009 2008 2007 2006
</script>

Am I missing something? How can I render the correctly formatted date?

A: What would happen if you rendered <p>{{dates}}</p>, instead of console logging it? Either way, you will likely want to iterate through arrays to render when using handlebars. This is done with #each.
<ul>
  {{ #each dates}}
    <li>{{this}}</li>
  {{/each}}
</ul>
  

<end_of_turn>