date format function for chart mouseover