angular-odata-es5 icon indicating copy to clipboard operation
angular-odata-es5 copied to clipboard

Date parameters are quoted

Open KG3RK3N opened this issue 3 years ago • 0 comments

Description Currently, dates can only send as quoted string. That makes it complicated on the backend site, because this values must cleaned from quotes to use it as dates.

My solution Add the below code to the quoteValue method.

if (value instanceof Date) { return `${value.toJSON()}`; }

Additional context If there is nothing that against it, I would like to create a PR.

KG3RK3N avatar Nov 27 '20 13:11 KG3RK3N