How to check date if date is between two date

This function the return the true and false if date is exist or not exist. function dateWithin(StartDate,EndDate,CheckDate) { var b,e,c; s = Date.parse(StartDate); e = Date.parse(EndDate); c = Date.parse(CheckDate); if((c <= e && c...