Add datepicker to period creation