How to stop adding offsets for the Date object when reading it from ASP.NET Core

Discussão em 'Angular' iniciado por wiki, Setembro 11, 2024.

  1. wiki

    wiki Guest

    I am developing a project with Angular and ASP.NET Core. I am sending this date from Angular to ASP.NET Core.

    Date object from Angular:

    2024-12-21T00:00:00


    But when reading it in ASP.NET Core, it will look like this:

    2024-12-20T18:30:00


    How can I get rid of adding offsets for the date object when sending it from Angular frontend?

    Thanks in advance.

    Continue reading...

Compartilhe esta Página