JSFiddle - React, Tailwind, and code Playground

HTML

<p id="test"></p>

JavaScript

var currentDate = "04/17/2014",
    val = currentDate.replace(/\//g , "-");

$('#test').html(val);