How can I validate in Javascript that two dates are within the same month without comparing the first two characters of the date string (i.e. 05/11/2004)?