Okay, so this is by no way 'pretty', but it works!
local stringvar sDate:= left(right(replace(replace({table.date},',',''),'.',''),8),6);
local datevar dDate;
sDate:=mid(sDate,3,2) & '/' & right(sDate,2) & '/' & left(sDate,2);
If isdate (sDate) then
dDate := Date(sDate)
else dDate:= Date(0,0,0);
dDate;
Everywhere that it looks like a double quotation mark is two single quotation marks.
After you have the field placed, format it how you want (DD/MM/YY, whatever).
Edited by FrnhtGLI - 09 Nov 2010 at 6:07am