new functions dt_to_time and dt_to_date