I need to send only Date without time to Web Api to get data w.r.t to date send. There are two ways to send it.
Convert it to Date.ISOString and receive as DateTime object in webapi. (but when you convert it to ISOString it removes offset hoours w.r.t UTC) and when webApi receives this datetime object takes it into local timezone). Since the date stored in database is in UTC format,I again need to convert it to UTC format for comparison.
Send datetime as string to web api in isoformat and then convert it to Datetime in utc format. I am feeling 2nd option is more reliable.
Is there any good alternative.