From 0f80eab6e7bbeb3026ec22b22273ab73dcded568 Mon Sep 17 00:00:00 2001 From: Rachel Tai Ke Jia Date: Mon, 11 Nov 2024 19:14:48 +0800 Subject: [PATCH] Add enhancement to check for valid dates --- docs/DeveloperGuide.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index 977d9317c8c..f9cb7cb68b1 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -1094,6 +1094,12 @@ Team size: 5 1. +3. **Modify date parsing to check for valid dates** +* **Flaw:** Entering an invalid date such as January 32 returns an error message that says "Invalid date-time format," which is unclear since the format itself is correct. +* **Enhancement:** Modify the date parsing logic to check for valid dates, such as ensuring that the day is within the range of the month. +* **Sample Input:** User enters `2023-03-32` for an appointment date. +* **Expected Output:** The result display box shows `Invalid date: The day is out of range for the month`. +
--------------------------------------------------------------------------------------------------------------------