I have an API that accepts a date in this format 20.02.2020, but I have to save it in MySql, so I need this format 2020/02/20, I have tried using replace function and regex. But didn't get the desired output.
let dt='20.02.2020';
dt.replace('/./g','')