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 166 views
1 answer 180 views
5 answers 398 views
1 answer 111 views
1 answer 89 views
1 answer 232 views
...