The only thing missing is a check for Feb 29, if it's a leap year.
absolutely
I want it that the user should enter the date in DD-MM-YY format. Prefer to use 'if-else if- else'. Please help me if there is any possibility of getting it in the desired format in Java.
Thank you so much