I am generating report i.e pdf from node to front end. I need to get a date with the format of dd/MM/yyyy . I used this :
<td style="font-size:11px;text-align: center;">
<strong>
<%= new Date().toISOString().slice(0, 10);%>
</strong>
</td>
to get a date but the report show in the format of yyyy-mm-dd. I need a perfect solution to get the date format as dd/MM/yyyy.