Convert dates to ISO string