Joined: 19 Feb 2004 Posts: 259 Location: Flagstaff AZ
Since my dates are coming in mm/dd/yyyy I had to convert them to yyyy-mm-dd.
Cast didn't work... I assume because of the incoming format.
I then moved the interval out of the compare and now it works....
Thanks everyone!
SET dt = substring(Body.Arrest.ActivityDate from 7 for 4) || '-' || substring(Body.Arrest.ActivityDate from 1 for 2) || '-' || substring(Body.Arrest.ActivityDate from 4 for 2)
SET dt1 = substring(Body.Arrest.ActivitySuspect.PersonBirthDate from 7 for 4) || '-' || substring(Body.Arrest.ActivitySuspect.PersonBirthDate from 1 for 2) || '-' || substring(Body.Arrest.ActivitySuspect.PersonBirthDate from 4 for 2)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum