View Full Version : My dateFormat doesn't seem to change submitted date

16 Dec 2011, 12:54 PM
I'm trying to have my Extensible Calendar dates match my mySql date format but I don't know if I'm changing it in the correct spot.

Here is my EventMappings

Extensible.calendar.data.EventMappings = {
EventId: {name: 'EventId', mapping:'id', type:'int'},
CalendarId: {name: 'CalendarId', mapping: 'roomId', type: 'int'},
Title: {name: 'Title', mapping: 'description'},
StartDate: {name: 'StartDate', mapping: 'start', type: 'date', dateFormat: 'Y-m-d H:i:s'},
EndDate: {name: 'EndDate', mapping: 'end', type: 'date', dateFormat: 'Y-m-d H:i:s'},
RRule: {name: 'RRule', mapping: 'rrule'},
Notes: {name: 'Notes', mapping: 'notes'},
Reminder: {name: 'Reminder', mapping: ''},
Location: {name: 'Location', mapping: ''},
Url: {name: 'Url', mapping: ''},
IsAllDay: {name: 'IsAllDay', mapping: ''},

// We can also add some new fields that do not exist in the standard EventRecord:
User: {name: 'User', mapping: 'user'},
Approved: {name: 'Approved', mapping:'approved', type:'boolean'}

When I try to post an update to my backend though the date seems to be sent in this format


I've been banging my head against this for a while and just can't figure it out. I haven't seen anyone else with the same issue in the forum so I assuming I'm doing something wrong somewhere.

Any help would be terrific. Thank you.