const date = new Date(); // get the current date console.log(date.toLocaleTimeString("en-us", {timeStyle: "short"})); // time