JJacobPR• 240
@JJacobPR
Posted
Hey, maybe this snippet will help you. It checks if day exists by creating Date object based on year and month input and extracting day count of needed month.
if (props.day >= 1 && props.day <= new Date(props.year, props.month, 0).getDate()) return true;
else return false;
Marked as helpful
0
Parviz Azeroglu• 150
@ParvizAzeroglu
Posted
Thank you so much for your help 👍. This snippet ran successfully.
0