>>Is there a function that does the opposite of this and converts a string, such as "20010601", to a date (CTOD() does not work unless there's a "/" in there)?
>
lcDate = "20010601"
>ldDate = EVAL("{^" + (TRANSFORM(lcDate, "@R 9999/99/99")) + "}")
This is a nice example of localization independent date handling.