First implementation with datepicker logic