So I'm using this code
let obj = {print: rows}
res.render('../views/pages/data', obj)
to render my data in a ejs file using this code
<table>
<% print.forEach(function (student) { %>
<tr class="table-info">
<td><%= student.firstName %></td>
<td><%= student.lastName %></td>
<td><%= student.building %></td>
<td><%= student.room %></td>
<td><%= student.checkIn %></td>
<td><%= student.checkOut %></td>
</tr>
<% }) %>
but the checkIn and checkOut date is not displayed the same way it is in MySQL. In the DB it only shows the data and time, but when I display it on the ejs file it displays checkIn and checkOut like this
Mon Nov 19 2018 12:56:09 GMT-0500 (Eastern Standard Time) Mon Nov 19 2018 12:56:47 GMT-0500 (Eastern Standard Time)
How can I get rid of the GMT-500 (Estern Standard Time)?