check new date set from javascript