Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by newbie on May 26, 2009 16:24
open dhtmlx forum
Compare Dates from textinput

I have two columns type dhxCalendar then i get tow values. How can i compare 2 values type string? I have problem when i change month :S how can i do this comparison between 2 dates type string. Thanks!
Answer posted by dhxSupport on May 27, 2009 02:33
There is no inbuild functionality to compare 2 dates. You can get value of the dhxCalendar cells using getValue() method and then using JavaScript functions convert them to the date object. For more information please check JavaScript reference.