JSFiddle - React, Tailwind, and code Playground
by Zaheer Ahmed
JavaScript
var dt = new Date(2014,3,20); // 20th April 2014
console.log(dt.toString());
dt.setDate(31); //will change to 1st of May
dt.setMonth(9); //1st October 2014
alert(dt.toString()) //alert 1st Ocotober 2014