migrate date in parameters and default values (fixes #4037)