Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

66
Vistas
How to get current time by passing timezone in javascript

is it possible to get the current time by providing timezone in javascript? Here I have- timezone - America/Detroit

var d = new Date();

is it possible to get current time by providing America/Detroit ?

7 months ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

let date = new Date;

let strTime = date.toLocaleString("en-US", { timeZone: 'America/Detroit' }); console.log(timeZone, strTime);

7 months ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos