String type to date type

Can one string type variable changed into the date type variable.

Can you provide some example of what you are trying to do?