formatting datetime to show on chart