reorganized format_dt