Convert text to Date

I have a string made of calculated components that I need to convert to a Date format.

the three variables would be the Month / Day / Year
an example of the variable created is “7/28/2020”
the “7/28/2020” is what I need to convert to a Date format

I’ve tried: utils.parseDate(variable, EEE, MM/dd/yyyy) but it returns NULL

Thank you,
Bob

Not sure if I understand correctly but isn’t this what you need? Just put the format parameter also as a string?

utils.parseDate("7/28/2020", "MM/dd/yyyy")

Ruben,

Thank you! The issue was the leading ‘EEE’ prior to the date format.

Bob