search by availableDate works, but still have to check the input format of date