Use the following formula;
numbervar y := 2000 + tonumber(mid({OCMQM1.COMMENTS},11,2));
numbervar m := tonumber(mid({OCMQM1.COMMENTS},8,2));
numbervar d := tonumber(mid({OCMQM1.COMMENTS},5,2));
numbervar h := tonumber(mid({OCMQM1.COMMENTS},14,2));
numbervar n := tonumber(mid({OCMQM1.COMMENTS},17,2));
numbervar s := tonumber(mid({OCMQM1.COMMENTS},20,2));
datetime(y,m,d,h,n,s)
Regards,
Ryan.
EDIT: Assumes all your dates will be post 01/01/2000...
Edited by rkrowland - 10 Apr 2012 at 11:18pm