display dates properly