The above answer does not work for a typical date, which is currently in yyyymmdd string format. The "left" and "right" should be replaced.
(date (ToNumber (Left ({?LD}, 4)), ToNumber (Mid ({?LD}, 5, 2)), ToNumber (Right ({?LD}, 2)) )
Craig source share