From fa2b02ad23a3ba41dca3d278611b54bbcc84e25c Mon Sep 17 00:00:00 2001 From: Kailasdevdas Date: Wed, 13 May 2026 11:57:33 +0530 Subject: [PATCH] feat: update date format in mail --- backend/src/controllers/appointment.controller.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/src/controllers/appointment.controller.js b/backend/src/controllers/appointment.controller.js index df316ca..91b1d58 100644 --- a/backend/src/controllers/appointment.controller.js +++ b/backend/src/controllers/appointment.controller.js @@ -84,8 +84,12 @@ export const createAppointment = async (req, res) => { Date: - ${new Date(date).toLocaleDateString()} - + ${new Date(date).toLocaleDateString("en-GB", { + day: "2-digit", + month: "long", + year: "numeric", + })} + -- 2.43.0