@Ayoubrabiae
Posted
I've reviewed the preview and your code, and I must say you're doing quite well. However, I've noticed some minor issues that need to be addressed.
Firstly, when I input an incorrect year, it always displays the error message, "You must be in the past." This could be problematic because if I input a date like 100 in years, it would still show the same error message! 😅
Secondly, I've noticed that there's a small issue in your code that allows us to calculate the date for the current day. The result in this case shows as "0 years, 0 days, 0 months." This should probably be fixed as well.
Marked as helpful
@mryjybrcia
Posted
@Ayoubrabiae Thank you for your feedback! I'll review the codes again and will take your comments as pointers. 😊