Check input format dd/mm/yyyy

Hi,

I got a date field that i wish user to key in in a certain format like
dd/mm/yyyy

But after my user key in, how can i validate and check that they key in in the correct format?

Thanks