JSFiddle - React, Tailwind, and code Playground
HTML
<script>
function myFunction()
{
var d = new Date('11/07/2013');
var x = document.getElementById("demo");
x.innerHTML=d.getFullYear();
}
</script>
<button onclick="myFunction()">Try it</button>
<p id="demo">Click the button to display the full year of todays date.</p>