How to get the current date and time in great britain with JavaScript

1 Answer

0 votes
const d = new Date();

console.log(d.toLocaleString('en-GB', { timeZone: 'UTC' })); 



/*
run:

11/02/2021, 07:39:16

*/

 



answered Feb 11, 2021 by avibootz

Related questions

1 answer 182 views
1 answer 312 views
1 answer 177 views
3 answers 352 views
4 answers 396 views
...