Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

362
Vistas
ASP.NET Core DateTime Rest API with Javascript converts to UTC instead of java

I have a problem with sending data from my react application with data Sat Oct 30 2021 00:00:00 GMT+0800 (Singapore Standard Time) from javascript function new Date(). When receiving from the my ASP.NET Core Rest Web API application, it converted to {10/29/2021 4:00:00 PM} for reason. I think what received from ASP.NET was a UTC time conversion from the javascript DateTime that send from my react application. Is there a way to not convert the and retain the same data as javascript DateTime when it receives data from my ASP.NET Core application?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

When I sent the time from the front-end page, the time received by the controller was converted. You can use the following methods to convert:

dateTime.ToString("r")

Result:

enter image description here

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda