Need help on validation mm/dd/yyyy in Javascript

Hey Whats up,
I am working on a form and I am trying to get the date to validate using mm/dd/yyyy , so the user has to type the date in like that or they will not be able to submit the form…this is what I have so far, i need help, i am sort of new to javascript so if you could help me figure this out it would be greatly appreciated…i think i need an array but i am super confused. i am trying to add this below to an if statement that is part off the validator i am using

move is the field name - here is the if statement i would like it to work with - please help !!! as you can see it is only validating 2 and / !!!

if ((document.account_edit.move.value == “”) ||
(document.account_edit.move.value.indexOf(‘2’) == -1) ||
(document.account_edit.move.value.indexOf(’/’) == -1)) {
missinginfo += "
- When are you moving? mm/dd/yyyy format";
}