I have included
scheduler.config.repeat_date = "%d/%m/%Y";
(not
scheduler.config.repeat_date ("%d/%m/%Y");
as it says in the documentation on your site) but it is not changing the format. It still displays as dd.mm.yyyy.
If
scheduler.config.repeat_date("%d/%m/%Y");
is correct, then I get an error when the code runs.
function init() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth() - 1;
var y = date.getFullYear();
scheduler.config.xml_date = "%Y-%m-%d %H:%i";
scheduler.config.repeat_date = "%d/%m/%Y";
scheduler.init("scheduler_here", new Date(y, m, d), "month");
scheduler.setLoadMode("month");
scheduler.load("/Calendar/Data");
var dp = new dataProcessor("/Calendar/Save");
dp.init(scheduler);
dp.setTransactionMode("POST", false);
}
I believe I have the line in the correct position.
Yes, thank you very much for this report.
It seems for now this value is hardcoded in the template used for scheduler so initial value will be displayed exactly as it’s writting in the template (01.01.2010) but for all save and re-open operation date formate function based on config.repeat_date will be used.
I believe will introduce additional property for such case.
For now you can change it youself:
Open dhtmlxscheduler_recurring.js file
Locate ‘01.01.2010’ part and change it to your format - ‘01/01/2001’.