add date type conversion