Since Node.js is based on JavaScript, you can use the Date object methods getDate(), getMonth(), and getFullYear() to get the current day, month, and year in a Node.js application. To create a new object of Date, just call its constructor like below: const today = new Date (); // 2020-11-24T10:20:14.782Z

4063

DOCTYPE html> JS Bin