JSFiddle - React, Tailwind, and code Playground

by doonot

JavaScript

var year = parseInt(new Date().getFullYear().toString().substr(2, 2));
								var futureYear = year + threshold;

								console.log("inserted year: ",  dateArray[i]);
								console.log("future year: ", futureYear);

								/*if(futureYear > dateArray[i]) {
									dateArray[i] = (20 + dateArray[i]).slice(-4);
									console.log("setting year to ", (20 + dateArray[i]).slice(-4));
								} else {
									dateArray[i] = (19 + dateArray[i]).slice(-4);
									console.log("setting year to ", (19 + dateArray[i]).slice(-4));
								}*/