Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Justin on Aug 18, 2009 09:13
open dhtmlx forum
Double calendar sample from live demo

Can someone post the sample code for the double calendar in the live demo 'event duration' portion of the website? It's exactly what I am looking for and the sample code for that would help greatly!

Thanks!
Answer posted by Alex (support) on Aug 19, 2009 06:08

Hello, 

setOnClickHandler is used in this demo:

mDCal.setOnClickHandler(function(date,obj,type){
  if(type=="left") left_input.value = obj.getFormatedDate("%d/%m/%Y",date);
  else right_input.value = obj.getFormatedDate("%d/%m/%Y",date);
})