Fix dates in firefox

Firefox was not rendering dates from short date and date elements in the grid.  Parse them better so that works.
Also fix sorting for date elements.