Keep date format in sync if browser caches form values.