$ 0 0 Try this code please: Stringvar dd := split({db field}, "-")[2]; If Isdate(trim(dd)) then cdate(dd); -Abhilash