JSFiddle - React, Tailwind, and code Playground
by austinfrance
HTML
<div id="log">
</div>
<input type="date" id="date" value="">
JavaScript
var d = new Date("Fri May 20 2016 00:00:00 GMT+1200 (WFT)");
log.innerText = d;
date.valueAsDate = d;
by austinfrance
<div id="log">
</div>
<input type="date" id="date" value="">
var d = new Date("Fri May 20 2016 00:00:00 GMT+1200 (WFT)");
log.innerText = d;
date.valueAsDate = d;