strToDate("%Y%n%d") error?

Hello,

var dateTimeParser = webix.Date.strToDate("%Y-%n-%d");
dateTimeParser(“2015-06-02”);

works good, but

var dateTimeParser = webix.Date.strToDate("%Y%n%d");
dateTimeParser(“20150602”)

fails, producing Invalid date.

How one can parse date from “20150602” and datetime from “20150602133343”?

Thanks

That is known limitation, date parser can’t recognize dates without separators between numbers.

Ok, thank you, Maksim.

Have another related question posted in the new discussion