How to get the current date and time in london with TypeScript

1 Answer

0 votes
const dt = new Date();
 
console.log(dt.toLocaleString('en-GB', { timeZone: 'Europe/London' })); 
 
 

 
/*
run:
 
"04/03/2022, 10:06:30" 
 
*/

 



answered Mar 4, 2022 by avibootz

Related questions

1 answer 116 views
1 answer 99 views
1 answer 245 views
1 answer 202 views
1 answer 149 views
1 answer 307 views
...