How to get the current date and time in london with Node.js

1 Answer

0 votes
const dt = new Date();
 
console.log(dt.toLocaleString('en-GB', { timeZone: 'Europe/London' })); 
 
 
 
 
/*
run:
 
04/03/2022, 10:08:21
 
*/

 



answered Mar 4, 2022 by avibootz

Related questions

1 answer 173 views
1 answer 188 views
5 answers 414 views
1 answer 115 views
1 answer 98 views
1 answer 244 views
...