clicking on date works