Datum und Zeit
const now = new Date();
console.log(now);
console.log(new Date('Aug 19 2021 18:05:41'));
console.log(new Date('December 24, 2015'));
console.log(new Date('2021-08-19T18:05:41'));Methoden
get-Methoden
get-Methodenconsole.log(future.getFullYear());
console.log(future.getMonth());
console.log(future.getDate());
console.log(future.getDay());
console.log(future.getHours());
console.log(future.getMinutes());
console.log(future.getSeconds());
console.log(future.getTime());set-Methoden
set-MethodentoString-Methoden
toString-MethodenLast updated