How to click on specific element out of the webelements in selenium webdriver in java

If the date from the list of dates is matching with the given date which is string format then it should click on that element from that list of dates which when fetched is converted to string only.
I have list of dates like below when converted to string:

2017-10-13  
2017-09-29  
2017-09-22  
2017-09-15  
2017-09-08  
2017-09-01  
2017-08-25  
2017-08-18 

So now if the input which is "2017-Sep-29" which when parsed to another format gives 2017-09-29 matches with the second date from the list then it should be clicked but it is throwing an error.

Below is my java code with comments :

WebDriver driver;
List<WebElement> stageListOfFilters;
String finalSnapshot = "", finalSnapshot1 = "";

@Test
public void getDateAndclick()
{
SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MMM-yyyy");
    try {
        Date varDate = dateFormat.parse("29-Sep-2017");
        dateFormat = new SimpleDateFormat("yyyy-MM-dd");
        finalSnapshot1 = dateFormat.format(varDate).toString();
        System.out.println("Final Date for comparison: " + finalSnapshot1);
    } catch (Exception e) {
        // TODO: handle exception
        e.printStackTrace();
    } //This part parses the given date in yyyy-MM-dd format 
    // ***********
    driver.findElement(By.xpath(config.getsnapshotFilter())).click(); 
    Thread.sleep(2000);
    stageListOfFilters = driver.findElements(By.xpath(".//*[@class='QvFrame DS']")); // This collects the list of dates which is fetched later on in for loop
    Thread.sleep(2000);
    for (int i = 0; i < stageListOfFilters.size(); i++) {
        System.out.println(stageListOfFilters.get(i).getText());
        if (finalSnapshot1.contains(stageListOfFilters.get(i).getText())) {
            stageListOfFilters.get(i).click(); //If 2017-09-29 matches with 2017-09-29 then it should click on that part from the list
            System.out.println("Data" + stageListOfFilters.get(i).getText());
            Thread.sleep(2000);
        }
}  

It gives element not visible error. Anyone please help. Thanks in advance