Fix the date range picker bug and format the date.