public boolean hasDate() {
        return PrimeSelenium.executeScript("return " + getWidgetByIdScript() + ".hasDate();");
    }
Checks whether a date is selected

@return true if a date is selected.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/DatePicker.java