I have a table like this
<table className="table terms-table">
<thead>
<tr>
<th scope="col" > start Date</th>
<th scope="col" > end Date </th>
</tr>
</thead>
<tbody>
{termsData.map(term =>
(
<tr key={term._id}>
<td>
{term.startDate}
</td>
<td>
{term.endDate}
</td>
</tr>
))}
</tbody>
</table>
and the date be like 1400-07-07T00:00:00.000Z
i just want 1400-07-07
how should i do this ?