JSFiddle - React, Tailwind, and code Playground
HTML
<span id="result">result goes here</span>
JavaScript
var d = new Date();
var strDate = d.toString('yyyy/MM/dd');
jQuery('#result').html(strDate);
<span id="result">result goes here</span>
var d = new Date();
var strDate = d.toString('yyyy/MM/dd');
jQuery('#result').html(strDate);