Servoy 6.0 release candidate 5

so you did do an override of the toString method and now it must take a extra format param?

This kind of prototyping is currently not supported, even if you use the ‘array’ notation. Because that static notation still maps on a real thing so it will still try to match it for you
you can do it by using a variable so that it becomes completely dynamic:

var start = new Date();
	var end = new Date();
	var method = "toString";
	/** @type {String} */
	var dateFormat = "yyyy-MM-dd HH:mm:ss";
	/** @type {String} */
	var searchDate = start[method](dateFormat) + "..." + end[method](dateFormat) + "|" + dateFormat;

but why “toString” why not just add a “format” function?