How create function valid birthday format dd-mm-yyyy

I write a small shell script create Payroll System my trouble is valid format birthday dd-mm-yyyy when you enter birthday if your value enter not match with format dd-mm-yyyy system will display "Fail Format Please re-enter Birthday with format dd-mm-yyyy" but i don't know how create function valid birthday?? Thanks Unix Expert

Hello!

Per forum rules, and the benefit of all users, please search the forums before posting a question.

You can easily search the forums using our internal Google search engine or our advanced internal search engine. You can also search our huge UNIX and Linux database by user generated tags or search the database for unanswered questions and provide an answer.

Thank you.

The UNIX and Linux Forums

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

Check this thread:

thanks mod
but i try to search in forum but i do not find my problem
My problem is
when you enter number of birthday and check it match with date format dd/mm/yyyy
if true next step else prompt "Please try again . . ."

With the given link above you should be able to give it a shot yourself.

Play around with it and come with specific questions about why particular lines in your code don't work.

Regards