Jo: timestamp(replace(trim(char(var), 'Z'), 'T', ' '))