JSFiddle - React, Tailwind, and code Playground

HTML

<div class="deployDate">2018-10-26</div>

JavaScript

var NoHyphens = deployDate2.replace(/-/g,"/");
  document.getElementById("deployDate").value = NoHyphens;
 
/* var text = $('.string').html().replace(',','').split(' ');

$('.string').text(text[1] + ' ' + text[0] + ' ' + text[2]); */