JSFiddle - React, Tailwind, and code Playground
by Eric L
JavaScript
var date = new Date("6/27/83");
if (date == 'Invalid Date') {
date = '';
alert('in here');
}
alert(date);
by Eric L
var date = new Date("6/27/83");
if (date == 'Invalid Date') {
date = '';
alert('in here');
}
alert(date);