Editor Date - Error in output

Hi,

please check my snippet:
http://webix.com/snippet/3d085714

If I select a date, it is shown in the right format: “04/18/2017”. But when I want to get extactly this formatted value, I get this:

“Tue Apr 18 2017 00:00:00 GMT+0200 (Mitteleuropäische Sommerzeit)”

So… how to get 04/18/2017 in %%(grid).getItem() or in onAfterEditStop???

you see the formatted output. so to get formatted value you should use formatter: webix.Date.dateToStr("%m/%d/%Y")(state.value)

And how to use it with $$(grid).getItem(3) like here:
http://webix.com/snippet/d8415a11

http://webix.com/snippet/99cb9ceb

Ok, this works. But it doesn’t seem to be perfomance, because of the second for-loop.

Is there another native suggestion?

By default, date editor will return a string if the original value had this type.

Also, the column has the stringResult property, which will convert the value to a string according to the current locale.

This behavior was described in detail in one of the similar topics:

http://forum.webix.com/discussion/comment/9370/#Comment_9370