Home / Javascript Tips Generated By ChatGPT / Using Date Object to Get Current Date and Time in Javascript Work with dates and times using the Date object. Source Code let now = new Date(); console.log(now.toString()); // Displays current date and time