Little function to format date to an easy sortable string.