From c350102580762ee79d529f51913231ac14da4e51 Mon Sep 17 00:00:00 2001 From: ppsahu Date: Fri, 17 Jan 2025 12:29:13 -0800 Subject: [PATCH] added max date as today's date --- src/components/EventRegistration/TestEventRegistration.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/EventRegistration/TestEventRegistration.js b/src/components/EventRegistration/TestEventRegistration.js index d7ad1dadd6..893f091a98 100644 --- a/src/components/EventRegistration/TestEventRegistration.js +++ b/src/components/EventRegistration/TestEventRegistration.js @@ -275,6 +275,7 @@ const TestEventRegistration = () => { name="dateOfBirth" value={formValues.dateOfBirth} onChange={handleChange} + max={new Date().toISOString().split("T")[0]} style={{ width: "100%", padding: "0.5rem",