I need to create a regular expression for date that works only in the following format. MM/DD/YYYY. Nothing else. I need 2 number for MM 2 Numbers for DD and 4 numbers for YYYY. If the users put's 1 number for month, 1 for day he should get an alert. Also, is this how other users validate there date?

I have this code and thought it was working but it is not. Any help would be great. Thanks

var RegExPattern = /(\d{1,2})\W(\d{1,2})\W(\d{4})/;