Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

105
Views
Moment.js no funciona bien para la versión sueca

Estoy tratando de convertir beginIntervalDate en formato ddd D MMM YYYY en la configuración regional sueca, sin embargo, muestra el 5 de enero de 2017 en lugar del 5 de enero de 2017. No puedo entender qué estoy haciendo mal aquí.

Aquí están los fragmentos de código:

const beginIntervalDate = moment(beginDate, dateFormatsI18n.beginDateFormat);

dateFormatsI18n viene de aquí:

 beginDateFormat: { id: 'scheduling-appointment-type-card-list.AppointmentContainer.beginDateFormat', description: 'Format for the begin date', defaultMessage: 'ddd, MMM D, YYYY', }) const dateFormatsI18n = { beginDateFormat: intl.formatMessage(i18n.beginDateFormat), }

Archivo de traducción respectivo:

programación-cita-tipo-tarjeta-lista.AppointmentContainer.beginDateFormat": "ddd D MMM AAAA"

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!