CON-317 date picker test

You can move date formating to seperate function.
Example:

```java
public String formatedDate(Date date, String format) {
    SimpleDateFormat dateFormat = new SimpleDateFormat(format);
    return dateFormat.format(date);
}