Updating date format for graph