datepicker and options generators