add some trivial functions: date_to_datetime, is_date, is_datetime