let now = new Date();
let year = now.getFullYear();
let month = now.getMonth() + 1;
let day = now.getDate();
let hour = now.getHours();
let minute = now.getMinutes();
let second = now.getSeconds();
let dayOfWeek = now.getDay();
console.log(`year is ${year}`);
console.log(`month is ${month}`);
console.log(`day is ${day}`);
console.log(`hour is ${hour}`);
console.log(`minute is ${minute}`);
console.log(`second is ${second}`);
console.log(`dayOfWeek is ${dayOfWeek}`);