caputing date change event