JSFiddle - React, Tailwind, and code Playground

by Fabian Allel

JavaScript

var fecha= '28/10/1987';

console.log(fecha.replace(/\//g, "-"));