new Date날짜
현재 날짜와 시간의 Date 객체를 생성합니다.
문법
new Date()예제
아래 값을 입력하면 예제에 즉시 반영됩니다.
const→new→console→specific→Jan→toISOString→const now = new Date();
console.log(now); // Current date and time
const specific = new Date(2024, 0, 1); // Jan 1, 2024
console.log(specific.toISOString());