I am looking for a function to reverse any string (YYYYMDD,YY/MM/DD,YYMMDD,...) created by the function FormatDateTime to
YYYYMDD
YY/MM/DD
YYMMDD
Did you check StrToDate and StrToDateTime ?