you should be passing dates in iso format. the json serializer should handle this. you also need to decide how timezones are handled.
https://learn.microsoft.com/en-us/dotnet/standard/datetime/system-text-json-support
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have project in blazor wasm and asp.net core webapi
I implemented the Culture For currency and dateTime format which in en-IN and en-US . SO When I Set en-IN the api does not work because
date format change to dd/MM/yyyy from MM/dd/YYYY
So how to I solve this problem my api call is like GetDataByDate(DateTime date);
parameter is date
How do I solve this issue?
you should be passing dates in iso format. the json serializer should handle this. you also need to decide how timezones are handled.
https://learn.microsoft.com/en-us/dotnet/standard/datetime/system-text-json-support