Using crystal-report 7
I want to convert the string value to datetime in crystal report
date format are
20120102 (yyyymmdd) 20120105 ...
The above answer does not work for a typical date that is currently in the string format yyyymmdd. The "left" and "right" need to be swapped.
(date (ToNumber (Left ({?LD}, 4)), ToNumber (Mid ({?LD}, 5, 2)), ToNumber (Right ({?LD}, 2)) )