I did binding save as you said and it has date field. If I try to post dates, It sends dates in quotation marks like “1899-11-30 00:00”. It’s weird.
How to prevent this?
If you are sending data back to server side it will always send all parameters as strings. Or do you mean that property view returns dates as string and not as Date objects ?
You can control how date objects will be serialized, but date will need to be converted to a string anyway.
It’s converting to string that’s okay but it also adds extra quotation marks.
Think like this:
var str = ’ “date” ';
Here is my solution.
{
view: “datepicker”,
name: “date”,
label: “Tarih”,
stringResult: true,
format: webix.Date.dateToStr("%d %M %Y")
}
Somehow it works for me correctly
OK. Just test this.
http://webix.com/snippet/102114a1
Look to url encoded form data
date=%222015-04-15%2000%3A00%22&webix_operation=insert
Please grab the updated package ( Webix 2.3.14 ) where this issue must be fixed.
Latest package is available on site ( pro version can be taken from client’s area ) as well as through Bower or NuGet