Format date and tool tip