mmddyyyy format for text entry field

How do you make a text entry field format to mm/dd/yyyy when you tab out of the field? Javascript perhaps?

Discussions have been disabled for this post