date issue 7

This commit is contained in:
2025-05-19 08:49:04 +05:30
parent b5132581c0
commit 67dcc94d8e
4 changed files with 18 additions and 2 deletions

View File

@@ -257,7 +257,8 @@ export function AppointmentForm({
: `Appointment with ${selectedStaff?.name}`;
}
const formattedDate = format(data.date, "yyyy-MM-dd");
const formattedDate = data.date.toLocaleDateString("en-CA");
onSubmit({
...data,