I have a little javascript file which I need to get the time of different timezone. I am only able to get the date but not the time.
let today = new Date();
let time = today.getTime();
let us = new Intl.DateTimeFormat('en-US').format(time);
let sv = new Intl.DateTimeFormat('sv').format(time);
console.log(us)
console.log(sv)
result in the console
2/25/2021
2021-02-25