Is it possible a extract a date from a text parameter?

Is it possible to transform a text parameter (for example as the output of a ‘formatted as text’) into a date/time to pass to a field that accepts the data type date?
Thanks for your help.