diff --git a/packages/esm-appointments-app/src/appointments/forms/create-edit-form/appointments-form.component.tsx b/packages/esm-appointments-app/src/appointments/forms/create-edit-form/appointments-form.component.tsx index 77df4feea..c2ecdc4c4 100644 --- a/packages/esm-appointments-app/src/appointments/forms/create-edit-form/appointments-form.component.tsx +++ b/packages/esm-appointments-app/src/appointments/forms/create-edit-form/appointments-form.component.tsx @@ -82,6 +82,7 @@ const AppointmentForm: React.FC = ({ appointment, patientU const { defaultFacility, isLoading: loadingDefaultFacility } = useDefaultLoginLocation(); const appointmentService = services?.find(({ uuid }) => uuid === patientAppointment.serviceUuid); + const today = dayjs().startOf('day').toDate(); useEffect(() => { if (locations?.length && sessionUser) { @@ -217,7 +218,7 @@ const AppointmentForm: React.FC = ({ appointment, patientU dateFormat="d/m/Y" datePickerType="single" id="visitDate" - minDate={patientAppointment.visitDate} + minDate={today} className={styles.datePickerInput} onChange={([date]) => setPatientAppointment({ ...patientAppointment, visitDate: date })} value={patientAppointment.visitDate}>