Added event onAfterChangeDate. Fixed bug with set equal dates