Update hidden date and onChange