problem with start and end date

Hello,
I’m trying to add an event by adding this code : 
  scheduler.attachEvent(“onEventSave”,function (){
                   
                             scheduler.addEvent({                           
                             start_date: ,
                             end_date: ,
                             text: ‘texte de test’,
                             details: 'je teste ',
                             sy_uuid: ‘#session.lSY.getUUID()#’,
                             categoryid:scheduler.form_blocks[“Myselect”].get_value(),
                             is_publicyn:1                               
                             })
                        });
But the problem is that i don’t know how to get the start_date and the end_date to complete the collection.

Can you help please.

Thanks
Abderahmen

Second parameter of onEventSave - hash of data


scheduler.attachEvent(“onEventSave”,function (id,ev){
scheduler.addEvent({
start_date: ev.start_date,
end_date: ev.end_date,
text: ‘texte de test’,
details: 'je teste ',
sy_uuid: ‘#session.lSY.getUUID()#’,
categoryid:scheduler.form_blocks[“Myselect”].get_value(),
is_publicyn:1
})

It’s working.
Thanks for support