Change Date format using modified javascript

how to change dd-mm-yy date format into dd/mm/yyyy using modified javascript step?

Hello @sonam1

Use the function date2str(input, "dd/MM/yy") in Modified Java Script step.

Input:

Modified Java Script:

Output:

Hello @KalyaniW

Actually I want to convert dd-mm-yy format to dd/mm/yyyy format.

Hello @sonam1

Please change the format in Modified Java Script to dd/MM/yyyy