Closed martinclavell closed 7 years ago
I still don't understand why are those \n before and after each { } there's any way to remove it?
... else if(dtMonth<1||dtMonth>12) {return false;} else if(dtDay<1||dtDay>31) {return false;} else if((dtMonth===4||dtMonth===6||dtMonth===9||dtMonth===11)&&dtDay===31) {return false;} else if(dtMonth===2) {var isleap=(dtYear%4===0&&(dtYear%100!==0||dtYear%400===0));if(dtDay>29||(dtDay===29&&!isleap)) {return false;}} return true;}} else ...
I still don't understand why are those \n before and after each { } there's any way to remove it?
... else if(dtMonth<1||dtMonth>12) {return false;} else if(dtDay<1||dtDay>31) {return false;} else if((dtMonth===4||dtMonth===6||dtMonth===9||dtMonth===11)&&dtDay===31) {return false;} else if(dtMonth===2) {var isleap=(dtYear%4===0&&(dtYear%100!==0||dtYear%400===0));if(dtDay>29||(dtDay===29&&!isleap)) {return false;}} return true;}} else ...