improve date formatting/sorting