Dear Community,
I encountered the conversion error on the date format which consist of following date format:

Error in Alteryx

Below is the format used to convert the date format accordingly.

Formula in the text format :
IF !IsNull(DateTimeParse([Invoice Date],"%d/%m/%y"))
// Check whether it falls in the date format
THEN DateTimeParse([Invoice Date],"%d/%m/%y")
// If yes then parse it with a new format
ELSEIF
!IsNull(DateTimeParse([Invoice Date],"%d-%b-%y")) THEN DateTimeParse([Invoice Date],"%d-%b-%y")
ELSEIF
!IsNull(DateTimeParse([Invoice Date],"%Y-%m-%d")) THEN DateTimeParse([Invoice Date],"%Y-%m-%d")
ELSEIF
!IsNull(DateTimeParse([Invoice Date],"%Y-%m-%d")) THEN ToDate(DateTimeParse([Invoice Date],"%Y-%m-%d"))
ELSE Null() ENDIF // Returns null if its a new format
Could anyone enlighten me on which part that i have made the error and how to correct it?
Many thanks in advance