converting dates to better string for graph labels