Improved date formatting for mouseover infobox