displayedDate should be based on dateTo