Merge pull request 'feat: update date format in mail' (#26) from feat/email-date-format into dev
Reviewed-on: #26
This commit was merged in pull request #26.
This commit is contained in:
@@ -84,8 +84,12 @@ export const createAppointment = async (req, res) => {
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="padding: 8px 0;"><b>Date:</b></td>
|
<td style="padding: 8px 0;"><b>Date:</b></td>
|
||||||
<td style="padding: 8px 0;">
|
<td style="padding: 8px 0;">
|
||||||
${new Date(date).toLocaleDateString()}
|
${new Date(date).toLocaleDateString("en-GB", {
|
||||||
</td>
|
day: "2-digit",
|
||||||
|
month: "long",
|
||||||
|
year: "numeric",
|
||||||
|
})}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user