no date query paramaeter when date fields are empty