cal_min_max_date function

Calculate minimum and maximum date and time in the data frame