JSFiddle - React, Tailwind, and code Playground

JavaScript

var dateTime = new Date(); 
   alert(dateTime.toString());