In workbench help -> Creating processes -> Xpath function reference -> String functions -> Date and time parameters section describes different representations used in expressing date/time.
So, e.g. if you pass yyyy-mm-dd as strFormat, it should return date in that format.
if you pass mm/dd/yyyy, it should format input datetime in that way and return it back.