Fixed date conversion so date sorter now works