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?
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: