Php Date String Validation Javascript Download