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);