create to_datetime_date() function which helps to accept datetime.datetime and datetime.date objects in process_*() functions along with str object