@AliRezaCoding
Posted
Hello, You done the project very nice, I recommend you to compare the current date vs input date like this : if(new date() > new date(year, month - 1, day) {}; and remember months are calculated zero-based in new date, this will help you to validate inputs accurate and prevent calculating future date. I hope this will be helpful for you.
Marked as helpful
@mouwaficbdr
Posted
@AliRezaCoding Thanks, I'll try it !