JSFiddle - React, Tailwind, and code Playground

by Joe Saad

CSS

body{
  background: white;
}

JavaScript

const md = "20170302"

const r = md.substring(0,4)+ '-' + md.substring(6,2)+ '-' + md.substring(5,md.length)

document.write(r)