JSFiddle - React, Tailwind, and code Playground

JavaScript

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

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

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