Hi,
I know there is tons of messages about this issue here in the forum. Still I could not solve the issue.
I use a Grid, a Scheduler and a Form all bind to a DataStore & DataProcessor:
myForm.bind(myDataStore);
myGrid.sync(myDataStore);
dmScheduler.sync(myDataStore);
The date format and server date format is set:
[code]myGrid.setDateFormat(“%d.%m.%Y”);
myGrid.setColTypes(“…,dhxCalendarA,…”);
…
myForm:
{
type:“calendar”,
name:“start_date”,
validate:“NotEmpty”,
dateFormat:“%d.%m.%Y”,
serverDateFormat:“%d.%m.%Y”,
label:“Datum”,
offsetTop:7
},
[/code]
Like mentioned in other threads I overwrite form.getValues:
myForm.getValues = function() {
return this.getFormData(true, true);
};
Everything is displayed correctly.
myForm.getValues() → returns end_date: “04.02.2015”
but even after a myForm.save();
myDataStore.item(rowid) → returns: start_date: Wed Feb 04 2015 00:00:00 GMT+0100 (CET)
which is also sent via the dataprocessor when I send the data:
myDataProcessor.init(myDataStore);
myDataProcessor.sendData(rowid);
What do I miss? How do I tell the DataStore/DataProcessor the correct serverDateFormat?
Thank you
Karl