JSFiddle - React, Tailwind, and code Playground

by minagabriel

JavaScript

var d = new Date("2013/8/3"); 

console.log(String(new Date().getFullYear()).substr(2));

console.log((d.getMonth() < 10 ? "0" : "") + (d.getMonth() + 1) );