is_date_time: compilation re factored out of the function