I have taken value of hours as character (Because value may be 14 or 14-16)..sort of. but here i want to make a check that user should not enter value of hour greater then 24.. How to do this,,