How to create a date from day, month and year in TypeScript

1 Answer

0 votes
const date = new Date(2022, 1, 14);

console.log(date.toDateString());

  
  
  
  
/*
run:
  
"Mon Feb 14 2022" 
  
*/

 



answered Mar 7, 2022 by avibootz
...