creates a date object for start_date and end_date