JSFiddle - React, Tailwind, and code Playground

by atamata

JavaScript

var d = new Date("2016-03-31");
d.setMonth(d.getMonth() - 1);
alert(d);