Formating the result of datetime operation