Jill, I think that for your function to work the string has to be in the "correct" date format corresponding to the current SET DATE TO setting and be a straight character string e.g. "06/31/2001" and not in the format ^2001-06-01 or did I miss something?
Sam Robbins BCRTC